I am trying to get form data from multipart/form-data POST to my ASW Lambda web service through an API gateway.
HTTP POST has a Content-Type of "multipart / form-data" and a URL encoded body. File data is also sent in this message (therefore, this is a multi-user option).
The web service must integrate with the thirdparty service, so changing the POST format is not really an option.
I saw this thread talking about converting URL encoded data to a JSON object for use in Lambda, but this does not do the trick.
I also tried setting Integration Request -> Mapping Templates for the content type multipart/form-data to enter PASSTHORE. It didnโt help either.
I came across another question about uploading a file using multipart/form-data , but since I am not interested in the file, just the body, this answer didn Help.
Below is a screenshot (sorry) for the captured message via runscope.

forms amazon-web-services aws-lambda aws-api-gateway
Diederik
source share