fix: [flask senf_file] fix decoded download

This commit is contained in:
Terrtia 2023-04-21 10:49:36 +02:00
parent 6338268e8c
commit c8ca3ecc58
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -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)