From fa3eb0d755f8a6bef136165627c38072454cbfae Mon Sep 17 00:00:00 2001 From: Justin Lim Zhe Shien Date: Fri, 14 Apr 2023 10:34:52 +0800 Subject: [PATCH] Change "attachment_filename" to "download_name" --- tfviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfviewer.py b/tfviewer.py index e1de87e..dbedf07 100755 --- a/tfviewer.py +++ b/tfviewer.py @@ -171,7 +171,7 @@ def get_image(key): img = images[key] img_buffer = io.BytesIO(img) return send_file(img_buffer, - attachment_filename=str(key)+'.jpeg', + download_name=str(key)+'.jpeg', mimetype='image/jpg') @app.after_request