jQuery-File-Upload
jQuery-File-Upload copied to clipboard
Can't delete, moved upload dir.
Hey guys,
So I moved my upload dir to where index.php and upload.php is
www.website.com/ - There is upload class and upload php and index www.webise.com/d/ - Is my upload dir
So I can upload and see these thinks but cant delete them it doesnt fire. my options are
$this->options = array(
'script_url' => $this->getFullUrl().'/',
'upload_dir' => dirname($_SERVER['SCRIPT_FILENAME']).'/d/',
'upload_url' => $this->getFullUrl().'/d/',
'param_name' => 'files',
// Set the following option to 'POST', if your server does not support
// DELETE requests. This is a parameter sent to the client:
'delete_type' => 'DELETE',
// The php.ini settings upload_max_filesize and post_max_size
// take precedence over the following max_file_size setting:
'max_file_size' => null,
'min_file_size' => 1,
'accept_file_types' => '/.+$/i',
// The maximum number of files for the upload directory:
'max_number_of_files' => null,
// Image resolution restrictions:
'max_width' => null,
'max_height' => null,
'min_width' => 1,
'min_height' => 1,
// Set the following option to false to enable resumable uploads:
'discard_aborted_uploads' => true,
// Set to true to rotate images based on EXIF meta data, if available:
'orient_image' => false,
'image_versions' => array(
'thumbnail' => array(
'upload_dir' => dirname($_SERVER['SCRIPT_FILENAME']).'/thumbnails/',
'upload_url' => $this->getFullUrl().'/thumbnails/',
'max_width' => 80,
'max_height' => 80
)
)
);
I cant find any think to solve this.
you need to edit the form in the html if you move the php that handles the upload
Please read: https://github.com/blueimp/jQuery-File-Upload#support