From 75de2930aaf4593baea69f5100b565d180b59131 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Thu, 29 Apr 2021 15:28:35 -0400 Subject: [PATCH] Update UserEdit.page --- plugins/dynamix/UserEdit.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/UserEdit.page b/plugins/dynamix/UserEdit.page index ea9a7385f..801f77d96 100644 --- a/plugins/dynamix/UserEdit.page +++ b/plugins/dynamix/UserEdit.page @@ -119,7 +119,7 @@ $(function(){ url:'/webGui/include/FileUpload.php', data:{"csrf_token":""}, beforeEach:function(file) { - if (!file.type.match(/^image\/.*/)) { + if (!file.type.match(/^image\/png/)) { swal({title:"Warning",text:"_(Only PNG images are allowed)_!",type:"warning",html:true,confirmButtonText:"_(Ok)_"}); return false; }