Skip to content

Commit

Permalink
Merge pull request #7 from KPMP/KPMP-4162_fix-send_file
Browse files Browse the repository at this point in the history
change attachment_filename to download_name
  • Loading branch information
zwright authored Feb 15, 2023
2 parents 9547617 + 9442df3 commit ccd8cdf
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 ccd8cdf

Please sign in to comment.