mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-10 10:15:10 -04:00
Mention upload file size limit (Fixe: #15)
This commit is contained in:
parent
b76dbcd4af
commit
2f2e47f0a2
2 changed files with 4 additions and 2 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue