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