Jquery Uploader not saving to a folder in the site root
- by Iain Simpson
im trying to integrate the Jquery Uploader into my website http://blueimp.github.com/jQuery-File-Upload/
The problem I am having is that I cant seem to get it save the folder I want to to save to.
In the UploadHander.php I have the following settings
'script_url' => $this->get_full_url().'/',
'upload_dir' => dirname($_SERVER['SCRIPT_FILENAME']).'./images/machinery/',
'upload_url' => $this->get_full_url().'./images/machinery/',
This results in an image uploaded url that looks like this
http://domain.com/rcsetch/up/server/php/machinery/image.jpg
Other than putting my php files in the root of the website, im not sure how to get it to work, as what I want it to do is upload the files to http://domain.com/images/machinery
and not to the create a folder in the directory where all the php files for the uploader are located.