From 45d933ebf069f9e3e0bcdad0777eb72b4bd64b44 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Wed, 23 Feb 2022 19:11:33 +0100 Subject: [PATCH] fixing gui-upload filesize bug --- js/pictshare.js | 2 ++ templates/main.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/js/pictshare.js b/js/pictshare.js index 5564492..167bc09 100644 --- a/js/pictshare.js +++ b/js/pictshare.js @@ -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") diff --git a/templates/main.html b/templates/main.html index 8146072..12ab006 100644 --- a/templates/main.html +++ b/templates/main.html @@ -21,6 +21,10 @@ + +