-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support binary option for multipart/form-data type #130
Comments
Would using the binaryMimeTypes option also work instead of introducing a new option? |
btw: have you defined multipart/form-data as a binary media type for your API, like described here? |
umm.. i tested with serverless-offline plugin and serveless config(serverless.ts) looks like
and this is lambda event
i already tried to solve this problem with binaryMimeType. but i can't still find reason why not working with binaryMimeType... |
I mean the real aws lambda event that is passed in your lambda handle function... something like: exports.handler = async (event, context) => {
console.log(JSON.stringify(event, null, 2))
return proxy(event, context)
} |
fyi: I just added some multipart tests.... seems to work: e274f7e |
oh,, i'm sry for confusion. atfter i have tried many times, figured out it happens due to local environment. it works on real aws api gw and lambda environment. thanks for reply! |
close PR too |
Prerequisites
馃殌 Feature Proposal
Hello! I'm using this module with
@fastify/multipart
. recently i found that when request type is multipart/form-data, it must be decoded withbinary
options likeBuffer.from(data, 'binary')
But, now it seems this module doesn't supportbinary
options. So could i add binary option?Motivation
When i send this request
lambda handler is (test with serverless-offline)
buffer result must be
but actual result of this version is
Example
I think new option
enforceBinaryOption
should be addedfalse
The text was updated successfully, but these errors were encountered: