Skip to content

Commit fcf07f1

Browse files
authored
Added upper case JPEG extension for icon upload (#7200)
1 parent 11ff2d2 commit fcf07f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)