Skip to content

Commit

Permalink
Fix PDFs being uploaded without content type
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Oct 30, 2024
1 parent 48b41d9 commit 34c926b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ def load_file(bucket: Bucket, key: str, local_path: str):


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

0 comments on commit 34c926b

Please sign in to comment.