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; }