AWS: API Gateway Encoding for multipart/form-data

+1 vote
My API gateway has a beanstalk reflected with passthrough, I have client that would send a multipart / form-data request to beanstalk directly. Now each time I request using API gateway, this is where the problem lies, as I am unable to open image. Is there a way to make a pure passthrough here?
May 10, 2018 in Cloud Computing by brat_1
• 7,080 points
1,297 views

2 answers to this question.

0 votes
Best answer

API Gateway now supports binary payloads. Simply define "multipart/form-data" as a binary media type for your API and proxy the payload directly to a Lambda function. From there you can parse the body to get your file content. There should be libraries available to help parse the multipart body ('parse-multipart' in NodeJS for example).

answered Aug 22, 2018 by Priyaj
• 56,520 points
+1 vote
Contact the AWS team your issue should be resolved in three days as they activate the API Gateway development team and solve the problem.
answered May 10, 2018 by hemant
• 5,750 points

Related Questions In Cloud Computing

+3 votes
3 answers

Is it possible to delete a API in AWS API Gateway?

Yes, it is possible to delete an ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,080 points
577 views
0 votes
1 answer

Can we Use Api keys with AWS API Gateway?

There is no getting away here. When ...READ MORE

answered Apr 18, 2018 in Cloud Computing by hemant
• 5,750 points
21 views
0 votes
1 answer

AWS: User Keys API Gateway

For identification you can generate one API ...READ MORE

answered May 22, 2018 in Cloud Computing by code_ninja
• 6,220 points
24 views
0 votes
1 answer

AWS: What is an API Gateway in AWS?

Amazon API Gateway is a fully managed ...READ MORE

answered Jul 26, 2018 in Cloud Computing by Meci Matt
• 9,400 points
34 views
0 votes
1 answer

AWS API Gateway should prevent use of TLS v1

API ( application programming interface )- It ...READ MORE

answered Aug 1, 2018 in Cloud Computing by ArchanaNagur
• 2,270 points
520 views
+2 votes
2 answers

Authenticated users with STS and API Gateway

RoleSessionName being an identifier for a defined ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,080 points
98 views
+4 votes
3 answers

Deploy RESTful API with .net framework 4.5 in AWS Lambda

This is an old question (somewhat), but ...READ MORE

answered Jan 16 in Cloud Computing by Kirk Davis
472 views
+4 votes
3 answers

AWS S3 pricing - data transfer in/out

All traffic FROM mobile phones to S3 ...READ MORE

answered Oct 16, 2018 in Cloud Computing by anish
74 views
+4 votes
3 answers

AWS API Gateway with AWS WAF

Well that is not possible, Reason: API Gateway would ...READ MORE

answered Mar 27, 2018 in Cloud Computing by code_ninja
• 6,220 points
355 views
+4 votes
4 answers

AWS S3 cli isn’t working on Windows server

The error message has nothing to do ...READ MORE

answered Aug 20, 2018 in Cloud Computing by Priyaj
• 56,520 points
129 views