Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def upload_to_aws_s3(file):
- s3.upload_fileobj(
- file,
- S3_BUCKET,
- file.filename,
- ExtraArgs={
- "ACL": acl
- "ContentType": file.content_type
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement