upload binary from api gateway to S3 bucket

前端 未结 2 1164
无人共我
无人共我 2021-01-16 05:45

i was trying to create a rest api which can take zip file as input (PUT requst) and store that on S3.

I\'m following the tutorial on http://docs.aws.amazon.com/apiga

2条回答
  •  心在旅途
    2021-01-16 06:33

    If you want to upload the binary files like mp3,audio, documents etc..., you can add an entry with value multipart/form-data in the Binary support in AWS API Gateway settings and post/put the binary file using the header Content-Type = multipart/form-data from postman or api client. It should work..!!

    api gateway-binary support image

提交回复
热议问题