【问题标题】:I want to upload audio files into S3 bucket using python api [duplicate]我想使用 python api 将音频文件上传到 S3 存储桶 [重复]
【发布时间】:2017-03-22 15:11:56
【问题描述】:

我想使用连接到 html 页面的 python api 将文件上传到 S3 存储桶并从 S3 存储桶下载文件

【问题讨论】:

    标签: python api amazon-s3


    【解决方案1】:

    这个“boto3”有一个库,可以在 S3 中上传文件。要快速设置 boto3,请遵循:

    boto3 quickstart

    上传文件:

    import boto3
    s3 = boto3.resource('s3')
    s3.meta.client.upload_file('filename', 'bucketname', 'desired filename in s3')
    

    【讨论】:

      猜你喜欢
      • 2017-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-25
      • 2015-08-26
      • 1970-01-01
      • 2020-10-05
      相关资源
      最近更新 更多