mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [flask senf_file] fix decoded download
This commit is contained in:
parent
6338268e8c
commit
c8ca3ecc58
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue