fixing gui-upload filesize bug

This commit is contained in:
Christian Haschek
2022-02-23 19:11:33 +01:00
parent a145ca88cc
commit 45d933ebf0
2 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ Dropzone.autoDiscover = false;
$(function() {
var myDropzone = new Dropzone("#dropzone");
if(maxUploadFileSize !== undefined)
myDropzone.options.maxFilesize = maxUploadFileSize;
myDropzone.on("success", function(file,response) {
console.log("raw response: "+response);
if(response==null || response =="null")