【发布时间】:2016-08-24 06:04:54
【问题描述】:
我正在尝试从客户端发送文件并通过 AWS API Gateway 将其接收到我的 Lambda 函数,然后该函数会将这个文件放入 S3 存储桶中。
我在 API Gateway 中使用以下作为默认参数模板
{"image" : $input.params('MediaUrl0')}
我将如何在 python 中接收它,如下所示: def read_upload_toS3(事件,上下文): s3 = boto3.resource('s3')
【问题讨论】:
标签: amazon-web-services amazon-s3 aws-lambda image-upload aws-api-gateway