For this plugin, I'v been able to upload and manage my files perfectly. The problem begins with deleting a file after it's been uploaded and appears in the upload queue.
Originally the index.php file where the uploader is located looks like this:
error_reporting(E_ALL | E_STRICT);
require('UploadHandler.php');
$upload_handler = new UploadHandler();
However, the way I've customized this in order to upload files in a specified directory, the index file now looks like this:
error_reporting(E_ALL | E_STRICT);
require_once('../../plugins/jqupload/server/php/UploadHandler.php');
$job = $_POST['path'];
$customer_path_files = $_SERVER['DOCUMENT_ROOT']. '/'.$job.'/';
$customer_path_url = '../../'. JOB_FILES_PATH.$job.'/';
if (!file_exists($customer_path_files)) {
@mkdir($customer_path_files ,0777,true);
}
$options=array(
'upload_dir' => $customer_path_files,
'upload_url' => $customer_path_url ,
'max_number_of_files' => 10
);
$upload_handler = new UploadHandler($options);
This also works perfectly. The only problem begins when clicking on the delete button that doesn't fire. Any ideas? Do I need to pass another value somewhere?