mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Added upper case JPEG extension for icon upload (#7200)
This commit is contained in:
parent
11ff2d20e8
commit
fcf07f1fb4
@ -195,7 +195,7 @@ export default {
|
|||||||
this.options.img = ''
|
this.options.img = ''
|
||||||
},
|
},
|
||||||
beforeUpload (file) {
|
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
|
this.showAlert = true
|
||||||
}
|
}
|
||||||
const reader = new FileReader()
|
const reader = new FileReader()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user