This is a great module. Thanks for the effort put in here.
HTML5 has an attributes called accept, which lets browser limit the file types allowed. This is super useful to prevent the users from upload file types that will be rejected by server-side validation.
I'm attaching a patch that uses the file field's allowed file types and convert it to the format expected by the accept attribute. I also tested it across multiple browsers and they worked well (Firefox, Chrome and Internet Explore 10).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | multiupload_filefield_widget-support_html5_accept-2510316-3.patch | 1.38 KB | idebr |
| #3 | interdiff-1-3.txt | 620 bytes | idebr |
Comments
Comment #1
ayesh commentedComment #2
spadxiii commentedJust applied this patch on 1.13 and it works fine! Setting this to RTBC
Comment #3
idebr commentedReroll to fix trailing whitespace. Patch works as expected, so RTBC++
Comment #5
vladimirausThanks everyone! Committed and deployed! 🍻