Skip to content

Commit

Permalink
change attachment_filename to download_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Feb 14, 2023
1 parent 9547617 commit 9442df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def downloadFile(packageId, objectName):
try:
objectNameFull = packageId + '/' + objectName
object = minioClient.get_object(s3Bucket, objectNameFull, request_headers=None)
return send_file(object, as_attachment=True, attachment_filename=objectName)
return send_file(object, as_attachment=True, download_name=objectName)
except S3Error as err:
print(err)
return err
Expand Down

0 comments on commit 9442df3

Please sign in to comment.