fix: Safariブラウザで生物由来ファイルをダウンロードすると、日本語名がおかしくなる問題を修正
This commit is contained in:
parent
a81bfa9d6c
commit
13ee19717c
@ -23,7 +23,7 @@ class S3Client(AWSAPIClient):
|
||||
'Bucket': bucket_name,
|
||||
'Key': file_key,
|
||||
# 別ファイル名に変更するための仕掛け。Unicode文字はquoteでエスケープが必要
|
||||
'ResponseContentDisposition': f'attachment; filename="{quote(download_filename)}"'
|
||||
'ResponseContentDisposition': f"attachment; filename*=UTF-8''{quote(download_filename)}"
|
||||
},
|
||||
# 有効期限20分
|
||||
ExpiresIn=1200
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user