-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
multer (1.0.3) hangs single / multi file upload #213
Comments
might be related to #205 |
I had the same fight two days ago: Try this: var req = request.post({url: url}, function optionalCallback(err, httpResponse, body) {
//DO STUFF
});
var form = req.form();
form.append('file', fs.createReadStream(pathToFile)); Please let me know if you know more about this issue. |
@DarianAnjuhal: thanks for the advise, I've rewritten the code to use native curl bindings now, this issue has disappeared. If I find the time, I will try it your way and report back to you ;) |
I have the same issue. I use postman to post a file, the server uses multer to parse multipart form. |
This should be fixed by #205 and released on npm as version Please reopen if issue persists. |
version: 1.0.3
Multer sometimes hangs on file uploads, predominantly, when multiple files are uploaded, but it's also reproducible with single file uploads. I've tracked the issue to make-middleware.js, when multer hangs readFinished is false and the busboy "finish" callback is never called. I have tried uploading multiple as well as single files using request (2.61.0) and superagent (1.3.0). Strangely enough, I was not able to reproduce this issue using curl or httpie, so maybe this issue isn't entirely (or at all) related to multer or busboy. Here is my "testcode" (relevant parts):
superagent:
request:
multer:
The text was updated successfully, but these errors were encountered: