3

Is it possible to upload a file from a web form to S3 through API Gateway? The 'method request' and 'integration request' has no way to configure the file upload. Or there is and I am missing it?

evansgambit
  • 825
  • 2
  • 8
  • 9

1 Answers1

8

It's possible to POST binary file uploads through API Gateway. However the binary data is converted to base64 encoded text. This has implications on memory consumption and processing the data. Data has to be processed as a buffer not as a stream.

See the following questions API Gateway file uploads and API Gateway binary data form POST.

Community
  • 1
  • 1
adamkonrad
  • 6,794
  • 1
  • 34
  • 41