Added upper case JPEG extension for icon upload (#7200)

This commit is contained in:
kiranchavala 2023-03-31 01:35:14 +05:30 committed by GitHub
parent 11ff2d20e8
commit fcf07f1fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ export default {
this.options.img = ''
},
beforeUpload (file) {
if (!/\.(svg|jpg|jpeg|png|bmp|SVG|JPG|PNG)$/.test(file.name)) {
if (!/\.(bmp|jpeg|jpg|png|svg)$/i.test(file.name)) {
this.showAlert = true
}
const reader = new FileReader()