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
Body parser maps files to params, but some time in the future #847
Labels
Milestone
Comments
@yunong OK thanks. The comment of the commit is right, in my opinion. |
@rehia Can you give me an example curl request that I can use to test a fix? |
@yunong unfortunately, I don't have one. I was just trying on my computer. Nothing available. |
This has been fixed as per c604cd8. If you pick up #master you'll get the fix right away. |
@yunong OK thanks ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to use Restify behavior to get an uploaded file in
request.params
using this:I have this endpoint configured:
When I upload a file, it appears that
request.files
contains the file, butrequest.params
is empty !After a debugging session, I found in
multipart_parser.js
, files a read and mapped torequest.params
asynchronously.I finally tries to execute the statements of the request handler in a
setTimeout
.And I finally got my file mapped in
request.params
!What can we do about this situation, so that when my handler has the control, files are set in
request.params
?Thanks
The text was updated successfully, but these errors were encountered: