summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorjvoisin2019-03-09 03:54:51 -0800
committerjvoisin2019-03-09 03:54:51 -0800
commitaa55b85c3a6d1fbfe0c4dac549fe0490bbd4d6ca (patch)
treea5526a4a96e129528c55385bd2a74b9eb21ece3f /main.py
parentb76dbcd4af6a1d95fa8daa6c6640db92d8be6859 (diff)
parent2f2e47f0a260072022ecdb796fc88446c8f4080d (diff)
Merge branch 'mention_upload_limit' into 'master'
Mention upload file size limit (Fixe: #15) See merge request jvoisin/mat2-web!11
Diffstat (limited to 'main.py')
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 1a99ad4..9f740bd 100644
--- a/main.py
+++ b/main.py
@@ -98,7 +98,8 @@ def upload_file():
98 98
99 return render_template('download.html', mimetypes=mimetypes, meta=meta, filename=output_filename, meta_after=meta_after, key=key) 99 return render_template('download.html', mimetypes=mimetypes, meta=meta, filename=output_filename, meta_after=meta_after, key=key)
100 100
101 return render_template('index.html', mimetypes=mimetypes) 101 max_file_size = int(app.config['MAX_CONTENT_LENGTH'] / 1024 / 1024)
102 return render_template('index.html', max_file_size=max_file_size, mimetypes=mimetypes)
102 103
103 104
104if __name__ == '__main__': # pragma: no cover 105if __name__ == '__main__': # pragma: no cover