How to prevent thumbnails

291 views
Skip to first unread message

Todd Freese

unread,
Mar 26, 2013, 5:07:09 PM3/26/13
to jquery-f...@googlegroups.com
Is there a setting to prevent the auto creation of thumbnails on upload? I don't need them and it's a pain to always have to delete them.

Todd

Rafał Pawlukiewicz

unread,
Mar 27, 2013, 10:07:13 AM3/27/13
to jquery-f...@googlegroups.com
If you not want priev  thumbnails  (before upload) just delete "<td class="preview"><span class="fade in"></span></td>" (or make 'disable' css).
in <script id="template-upload" type="text/x-tmpl"> ... template section.

Todd Freese

unread,
Mar 27, 2013, 10:52:40 AM3/27/13
to jquery-f...@googlegroups.com
Actually, I am trying to disable the thumbnails that get automatically created when a file is uploaded on the server.

Todd

Greg

unread,
May 17, 2013, 7:51:27 AM5/17/13
to jquery-f...@googlegroups.com
I'd like to do the same. Disable the thumbnail file generation on the server. Is it possible?

Addison Hunt, III

unread,
May 18, 2013, 1:46:18 PM5/18/13
to jquery-f...@googlegroups.com
I'd like to do the same.

Daniel

unread,
May 31, 2013, 3:44:12 PM5/31/13
to jquery-f...@googlegroups.com
for php version, on index.php you need to pass this option:

$upload_handler = new UploadHandler(array(
 
'image_versions' => array()
));

you can see more about how it works on UploadHandler.php, it is better to specify override options on index.php(like my example), so you don't have to change UploadHandler.php

for html to not show the thumbnail you can use this on the js:

$('#fileupload').fileupload({previewSourceFileTypes: /^disabled$/});

That is kinda documented in the code on file jquery.fileupload-ui.js, same thing, try to use the options as in the example instead of changing jquery.fileupload-ui.js
Reply all
Reply to author
Forward
0 new messages