summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/upload.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/upload.js b/static/upload.js
index 468cae0..95b121d 100644
--- a/static/upload.js
+++ b/static/upload.js
@@ -1,8 +1,9 @@
// common variables
+let configMaxUploadSize = window['MAX_UPLOAD_SIZE'];
let iBytesUploaded = 0
let iBytesTotal = 0
let iPreviousBytesLoaded = 0
-let iMaxFilesize = 104857600 // 100MB
+let iMaxFilesize = configMaxUploadSize ? (+configMaxUploadSize) : (100 * 1024 * 1024); // 100MB
let timer = 0
let uploadInProgress = 'n/a'
let isProcessing = false