This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new fcf07f1fb41 Added upper case JPEG extension for icon upload (#7200)
fcf07f1fb41 is described below

commit fcf07f1fb41073bd00dbf6b8916f34d806d9d41f
Author: kiranchavala <[email protected]>
AuthorDate: Fri Mar 31 01:35:14 2023 +0530

    Added upper case JPEG extension for icon upload (#7200)
---
 ui/src/components/view/UploadResourceIcon.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()

Reply via email to