mirror of https://github.com/CIRCL/AIL-framework
fix: [flask senf_file] fix decoded download
parent
6338268e8c
commit
c8ca3ecc58
|
@ -100,7 +100,7 @@ def decoded_download():
|
||||||
if decoded.exists():
|
if decoded.exists():
|
||||||
filename = f'{decoded.id}.zip'
|
filename = f'{decoded.id}.zip'
|
||||||
zip_content = decoded.get_zip_content()
|
zip_content = decoded.get_zip_content()
|
||||||
return send_file(zip_content, attachment_filename=filename, as_attachment=True)
|
return send_file(zip_content, download_name=filename, as_attachment=True)
|
||||||
else:
|
else:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue