-
-
Notifications
You must be signed in to change notification settings - Fork 105
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pass field directly for files #473
Conversation
Sounds semver major |
Yeah, I pointed it at |
This also lets people use the registered schema to validate file properties, which otherwise is redundant for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR will be superseded |
@gurgunday was this PR ever superseded by another PR? I'm looking to get both the filename and contents while using |
is this available now? |
Hey, this is still not available Feel free to send a PR to I'm trying to write a performant |
Closes #472
Instead of monkey patching
request.file()
and making it return already consumed file fields, we can just pass them directly toreq.body
whenattachFieldsToBody
is set to'keyValues'
Initially, this PR only passed
_buf
andfilename
, but if someone needs to see the file name, they might also want to see themimetype
or other properties, so we now just pass the entire field for filesChecklist
npm run test
andnpm run benchmark
and the Code of conduct