📜  flask 上传文件到本地 s3 - Python 代码示例

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

代码示例1
import boto3
session = boto3.session.Session()

s3 = session.client(
            service_name='s3',
            endpoint_url='http://localhost:4566',
        )
bucket_name = "mybucket"
s3.upload_fileobj(uploadedFile, bucket_name, file_name)