myshenin / aws-lambda-multipart-parser

Parser of multipart/form-data requests for AWS Lambda
MIT License
74 stars 38 forks source link

Decode event body from BASE 64 #21

Open djdavisdt opened 5 years ago

djdavisdt commented 5 years ago

@myshenin I was only able to get this working by decoding the event.body from base64 prior to being introduced to your pattern matching logic. My event object comes from AWS API Gateway as a base64 encoded string.

atis commented 5 years ago

This wouldn't work on serverless, as it is not doing base64 encoding. More clean MR: https://github.com/myshenin/aws-lambda-multipart-parser/pull/26