acceptFileTypes is not working even in the demo page
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.
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/',
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.
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