We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fff2eb commit 3688288Copy full SHA for 3688288
src/modules/file.js
@@ -87,7 +87,7 @@
87
if( files.length ) {
88
$.each(files, function(i, file) {
89
valid = false;
90
- mime = file.type || '';
+ mime = file.type || file.name.substring(file.name.lastIndexOf('.') + 1);
91
$.each(allowedTypes, function(j, type) {
92
valid = mime.indexOf(type) > -1;
93
if( valid ) {
0 commit comments