diff options
| author | X3STeNLiTE <xestenlite@gmail.com> | 2020-04-08 22:53:54 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-09 01:53:54 +1000 |
| commit | 20bf93c86d7453d4ac1bdaf6bd2679f49d5951e9 (patch) | |
| tree | 083c965025efc01bc864b69bc3f47c0828daf85a /templates/upload.html | |
| parent | cb8d61538dac417f3534558e864e9982616c2010 (diff) | |
fix hard-coded frontend max_upload_size validation (#20)
Diffstat (limited to 'templates/upload.html')
| -rw-r--r-- | templates/upload.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/upload.html b/templates/upload.html index 1ba2fb6..2967416 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -36,5 +36,6 @@ </div> {{end}} {{define "scripts"}} + <script>window['MAX_UPLOAD_SIZE'] = '{{.MAX_UPLOAD_SIZE}}';</script> <script type="application/javascript" src="/static/upload.js"></script> {{end}} |
