【发布时间】:2017-03-22 15:11:56
【问题描述】:
我想使用连接到 html 页面的 python api 将文件上传到 S3 存储桶并从 S3 存储桶下载文件
【问题讨论】:
我想使用连接到 html 页面的 python api 将文件上传到 S3 存储桶并从 S3 存储桶下载文件
【问题讨论】:
这个“boto3”有一个库,可以在 S3 中上传文件。要快速设置 boto3,请遵循:
上传文件:
import boto3
s3 = boto3.resource('s3')
s3.meta.client.upload_file('filename', 'bucketname', 'desired filename in s3')
【讨论】: