mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-23 16:49:59 -05:00
Merge branch 'mention_upload_limit' into 'master'
Mention upload file size limit (Fixe: #15) See merge request jvoisin/mat2-web!11
This commit is contained in:
commit
aa55b85c3a
3
main.py
3
main.py
@ -98,7 +98,8 @@ def upload_file():
|
||||
|
||||
return render_template('download.html', mimetypes=mimetypes, meta=meta, filename=output_filename, meta_after=meta_after, key=key)
|
||||
|
||||
return render_template('index.html', mimetypes=mimetypes)
|
||||
max_file_size = int(app.config['MAX_CONTENT_LENGTH'] / 1024 / 1024)
|
||||
return render_template('index.html', max_file_size=max_file_size, mimetypes=mimetypes)
|
||||
|
||||
|
||||
if __name__ == '__main__': # pragma: no cover
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
<h2>» Remove metadata</h2>
|
||||
<p>
|
||||
Upload your file, get a <em>cleaned</em> one in response.
|
||||
Upload your file (max size: {{ max_file_size }}MB), get a <em>cleaned</em> one in
|
||||
response.
|
||||
<br><br>
|
||||
Please note that while we do not keep a copy of your file,<br>
|
||||
there is no way that you could be certain about this: act accordingly.
|
||||
|
Loading…
x
Reference in New Issue
Block a user