mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 05:30:07 -06:00
webGui: Fix regression adding or changing user account images
This commit is contained in:
@@ -70,7 +70,7 @@ $(function(){
|
||||
maxfiles:1,
|
||||
maxfilesize:95, // KB
|
||||
url:'/webGui/include/FileUpload.php',
|
||||
data:{path:path},
|
||||
data:{path:path,"csrf_token":"<?=$var['csrf_token']?>"},
|
||||
beforeEach:function(file) {
|
||||
if (!file.type.match(/^image\/png/)) {
|
||||
swal({title:"Warning",text:"Only PNG images are allowed!",type:"warning"});
|
||||
|
||||
@@ -71,6 +71,7 @@ $(function(){
|
||||
maxfiles:1,
|
||||
maxfilesize:95, // KB
|
||||
url:'/webGui/include/FileUpload.php',
|
||||
data:{"csrf_token":"<?=$var['csrf_token']?>"},
|
||||
beforeEach:function(file) {
|
||||
if (!file.type.match(/^image\/png/)) {
|
||||
swal({title:"Warning",text:"Only PNG images are allowed!",type:"warning"});
|
||||
|
||||
Reference in New Issue
Block a user