Jquery Uploader not saving to a folder in the site root

Posted by Iain Simpson on Stack Overflow See other posts from Stack Overflow or by Iain Simpson
Published on 2012-12-02T23:00:56Z Indexed on 2012/12/02 23:03 UTC
Read the original article Hit count: 269

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery