When I'm setting allowed file types that can be uploaded it still lets me upload any file type. I'm using the following code below:
uploader.setFileTypes("*.pdf");
Is that expected behavior?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I'm setting allowed file types that can be uploaded it still lets me upload any file type. I'm using the following code below:
uploader.setFileTypes("*.pdf");
Is that expected behavior?
Looks like not all browsers accept ".pdf", including Chrome. I'll have to put MIME types manually. See this comment for more information.
http://stackoverflow.com/questions/181214/file-input-accept-attribute-is-it-useful#comment14753445_10503561
Also firefox will support only "image/" and "video/" and ignore anything else.
https://bugzilla.mozilla.org/show_bug.cgi?id=826185