diff --git a/ui/src/components/view/UploadResourceIcon.vue b/ui/src/components/view/UploadResourceIcon.vue index 87cf9503ac0..9b196852d8a 100644 --- a/ui/src/components/view/UploadResourceIcon.vue +++ b/ui/src/components/view/UploadResourceIcon.vue @@ -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()