From c8ca3ecc5876f33530de18ce189c2fbcdec5fc3d Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 21 Apr 2023 10:49:36 +0200 Subject: [PATCH] fix: [flask senf_file] fix decoded download --- var/www/blueprints/objects_decoded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/blueprints/objects_decoded.py b/var/www/blueprints/objects_decoded.py index b6623407..ccd1b4e5 100644 --- a/var/www/blueprints/objects_decoded.py +++ b/var/www/blueprints/objects_decoded.py @@ -100,7 +100,7 @@ def decoded_download(): if decoded.exists(): filename = f'{decoded.id}.zip' 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: abort(404)