change the upload folder

73 views
Skip to first unread message

Thomas May

unread,
Apr 28, 2015, 3:44:23 AM4/28/15
to jquery-f...@googlegroups.com
Hello all,

i want to change the folder location from server/php/ to files/. i found that codesnipbbet in main.js and change it, but now the pictures are gone and i cant delete a picture

$(function () {
    'use strict';

    // Initialize the jQuery File Upload widget:
    $('#fileupload').fileupload({
        // Uncomment the following to send cross-domain cookies:
        //xhrFields: {withCredentials: true},
        //url: 'server/php/'
        url: 'files/'
        //maxFileSize: 10000000 // max 10MB
 
    });

kevin mar

unread,
Apr 29, 2015, 9:30:00 AM4/29/15
to jquery-f...@googlegroups.com
For the picures, you must also modify  Uploadhandler.php .
 'thumbnail' => array(
                    'upload_dir' => '../../FRI/thumb/',
                    'upload_url' => '../FRI/thumb/',

I think you have to modify  this, too (in Uploadhandler.php) :
    function __construct($options = null, $initialize = true, $error_messages = null) {
        $this->response = array();
        $this->options = array(
            'script_url' => $this->get_full_url().'/',
            'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/FRI/',
            'upload_url' => $this->get_full_url().'/FRI/'

I'm looking why i can't use the delete function.
Reply all
Reply to author
Forward
0 new messages