jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

acceptFileTypes is not working even in the demo page

Open junixdpirate opened this issue 14 years ago • 3 comments

I know this issue has been ask a lot of times. but I still can't find an absolute solution how to make acceptFileTypes working. Even in the demo page, it says "Only image files (JPG, GIF, PNG) are allowed.." but it's not working either. I can select other file types.

junixdpirate avatar Mar 30 '12 06:03 junixdpirate

I changed

after adding: js/jquery.fileupload-ui.js

acceptFileTypes: /.+$/i, on acceptFileTypes: /(.|/)(gif|jpe?g|png)$/i,

after pressing the start (in transmitting): server\php\upload.class.php

'accept_file_types' => '/.+$/i', on 'accept_file_types' => '/gif|jpeg|jpg|png|bmp|GIF|JPEG|JPG|PNG|BMP/',

fonder avatar Mar 30 '12 17:03 fonder

I also need to use the uploaded for videos. So, changing the accepFileTypes inside jquery.fileupload-ui.js is not a good idea in my end. Though, I also tried it but also not working. I have no problem in filtering file times in server-side. I just want the 'acceptFileTypes' works.

It's really kinda weird because even in the demo page. 'acceptFileTypes' is not working. BTW, I'm using mac. viewing in FF, chrome and safari.

junixdpirate avatar Apr 02 '12 02:04 junixdpirate

The demo makes use of the acceptFileTypes option and I cannot reproduce any problems. Feel free to reopen if you can provide a reproducible test case.

Please also read: https://github.com/blueimp/jQuery-File-Upload#support

blueimp avatar Sep 06 '12 02:09 blueimp