Skip to content

Commit 9207956

Browse files
authored
Merge pull request #7 from swisstopo/fix/aws-content-type
Fix PDFs being uploaded without content type
2 parents 2b08046 + 34c926b commit 9207956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/aws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ def load_file(bucket: Bucket, key: str, local_path: str):
6161

6262

6363
def store_file(bucket: Bucket, key: str, local_path: str):
64-
bucket.upload_file(local_path, key)
64+
bucket.upload_file(local_path, key, ExtraArgs={'ContentType': 'application/pdf'})

0 commit comments

Comments
 (0)