Skip to content

Instantly share code, notes, and snippets.

@stablexbt
Last active March 15, 2019 16:42
Show Gist options
  • Select an option

  • Save stablexbt/3929b404810d3eae6853992d6207dbb5 to your computer and use it in GitHub Desktop.

Select an option

Save stablexbt/3929b404810d3eae6853992d6207dbb5 to your computer and use it in GitHub Desktop.
def upload_to_aws_s3(file):
s3.upload_fileobj(
file,
S3_BUCKET,
file.filename,
ExtraArgs={
"ACL": acl
"ContentType": file.content_type
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment