javascript - how to totally remove any kind of Thumbnails using Jquery FileUpload library? -
i'm using jquery fileupload upload files on server.
i need remove kind of thumbnails in html area of upload, if configured javascript , php avoid thumbnails, still have them in 2 occasions:
- when add file, it's created canvas image
- when file uploaded, created html image thumbnail link
i don't want space thumbnails in box, @ all. these configuration (i copy code of interest)
this configuration javascript
$('#fileupload').fileupload({ **previewsourcefiletypes: '',** url: 'tfnav?page=upload' });
and configuration php:
$this->options = array( 'script_url' => $this->get_full_url().'/', 'upload_dir' => $this->_hattach->getuploadpath(), 'upload_url' => $this->get_full_url().'/files/', 'user_dirs' => false, 'mkdir_mode' => 0755, 'param_name' => 'files', 'delete_type' => 'delete', 'access_control_allow_origin' => '*', 'access_control_allow_credentials' => false, 'access_control_allow_methods' => array( 'options', 'head', 'get', 'post', 'put', 'patch', 'delete' ), 'access_control_allow_headers' => array( 'content-type', 'content-range', 'content-disposition' ), 'download_via_php' => false, // defines files can displayed inline when downloaded: **'inline_file_types' => '',** // defines files (based on names) accepted upload: 'accept_file_types' => '/.+$/i', ....
but these configurations not enough, how can remove them? lot in advance
inside uploadhandler.php
comment inside 'image_versions'
'image_versions' => array()
or
$upload_handler = new uploadhandler(array( 'image_versions' => array() // no image versions ));
Comments
Post a Comment