File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,10 @@ export default {
305305 },
306306 __filter (files ) {
307307 return Array .prototype .filter .call (files, file => {
308- return this .computedExtensions .some (ext => file .type .startsWith (ext) || file .name .endsWith (ext))
308+ return this .computedExtensions .some (ext => {
309+ return file .type .toUpperCase ().startsWith (ext .toUpperCase ()) ||
310+ file .name .toUpperCase ().endsWith (ext .toUpperCase ())
311+ })
309312 })
310313 },
311314 __add (e , files ) {
@@ -323,7 +326,7 @@ export default {
323326 file .__size = humanStorageSize (file .size )
324327 file .__timestamp = new Date ().getTime ()
325328
326- if (this .noThumbnails || ! file .type .startsWith (' image ' )) {
329+ if (this .noThumbnails || ! file .type .toUpperCase (). startsWith (' IMAGE ' )) {
327330 this .queue .push (file)
328331 }
329332 else {
You can’t perform that action at this time.
0 commit comments