Answers for "upload_file boto3 headers"

1

upload_file boto3 headers

import boto3
s3 = boto3.resource('s3')
s3.meta.client.upload_file('source_file_name.html', 'my.bucket.com', 'aws_file_name.html', ExtraArgs={'ContentType': "application/json", 'ACL': "public-read"} )
Posted by: Guest on April-27-2020

Python Answers by Framework

Browse Popular Code Answers by Language