📜  upload_file boto3 标头 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:16.053000             🧑  作者: Mango

代码示例1
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"} )