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(): 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 diff --git a/templates/index.html b/templates/index.html index 576b387..5ae6254 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,8 @@

ยป Remove metadata

- Upload your file, get a cleaned one in response. + Upload your file (max size: {{ max_file_size }}MB), get a cleaned one in + response.

Please note that while we do not keep a copy of your file,
there is no way that you could be certain about this: act accordingly.