mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +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 = ''
|
||||
},
|
||||
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user