From 6c5db3663c834655c5bcd71dc98aa77b825996fc Mon Sep 17 00:00:00 2001 From: Duncan Phelps Date: Mon, 3 May 2021 22:03:42 -0500 Subject: [PATCH] AWS Lambda Binary Media Types --- demos/function/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demos/function/README.md b/demos/function/README.md index d4138ec..bee3fa5 100644 --- a/demos/function/README.md +++ b/demos/function/README.md @@ -114,6 +114,11 @@ The `LambdaProxy` example reads files from form data and converts to CSV. When deploying on AWS, be sure to `npm install` locally and include the modules in the ZIP file. +When reading form data, be sure to include the necessary binary types on the AWS API Gateway console. +To do this, navigate to the "Binary Media Types" section in the settings tab of the console. +For reading a file, you may need to add "multipart/form-data". +For downloading a file, you may need to add "application/vnd.ms-excel". + #### Azure Functions Azure supports many types of triggers. The `AzureHTTPTrigger` shows an example