📜  python boto3 put_object to s3 - 任何代码示例

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

代码示例1
file = open(r"/tmp/" + filename)
response = s3.meta.client.Bucket('').put_object(Key='folder/{}'.format(filename), Body=file)