mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-12 03:05:19 -04:00
Add a way to display the supported fileformats
This commit is contained in:
parent
1837b53ece
commit
12be535945
3 changed files with 29 additions and 4 deletions
1
main.py
1
main.py
|
@ -42,7 +42,6 @@ def upload_file():
|
|||
mimetypes = set()
|
||||
for parser in parser_factory._get_parsers():
|
||||
mimetypes = mimetypes | parser.mimetypes
|
||||
mimetypes = ', '.join(mimetypes)
|
||||
|
||||
if request.method == 'POST':
|
||||
if 'file' not in request.files: # check if the post request has the file part
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue