Skip to content

Commit 8ee856c

Browse files
wc-matteorstoenescu
authored andcommitted
* Complete fix for quasarframework#1647 Makes the extensions comparisons case-insensitive * Update QUploader.vue * Update QUploader.vue
1 parent feb873b commit 8ee856c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/uploader/QUploader.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)