I am trying to send a file from client side and receive it through AWS API Gateway to my Lambda function which will then put this file in S3 bucket.
I have used the following as default parameter template in API Gateway
{"image" : $input.params('MediaUrl0')}
How will I receive it in python which looks like: def read_upload_toS3(event, context): s3 = boto3.resource('s3')