Update UserEdit.page

This commit is contained in:
Squidly271
2021-04-29 15:28:35 -04:00
committed by GitHub
parent e3f647a059
commit 75de2930aa

View File

@@ -119,7 +119,7 @@ $(function(){
url:'/webGui/include/FileUpload.php',
data:{"csrf_token":"<?=$var['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;
}