Skip to content

Commit c6a342e

Browse files
kiranchavalakishankavala
authored andcommitted
Added upper case JPEG extension for icon upload (apache#7200)
1 parent 94eb4be commit c6a342e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/view/UploadResourceIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default {
195195
this.options.img = ''
196196
},
197197
beforeUpload (file) {
198-
if (!/\.(svg|jpg|jpeg|png|bmp|SVG|JPG|PNG)$/.test(file.name)) {
198+
if (!/\.(bmp|jpeg|jpg|png|svg)$/i.test(file.name)) {
199199
this.showAlert = true
200200
}
201201
const reader = new FileReader()

0 commit comments

Comments
 (0)