I have website build on Symfony and I'm using TinyMCE (not as a bundle, but JS script in web folder). I have installed plugin jbimages from justboil.me for image upload. But when I try to upload an image I get error "The upload path does not appear to be valid". Even on localhost, even on domain.
I think it's because symfony's accessible files are not in root. But how to solve it?
My config for saving files:
$config['img_path'] = './images/upload'; // Relative to domain name
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
Thanks and sorry for my english, I'm learning.