Conversation
|
So it seems like this breaks on Node.js 0.10 😭 I'm going to bed now, I'll take a look at it later. |
this is what was shown when I run 'npm install expressjs/multer#d787546',I don't know why. |
|
It seems like you don't have git installed. If you don't want to install it you could probably download this version manually (link below), unzip it, and install it with https://github.com/expressjs/multer/archive/d787546fdb389d8690cbef9a4103a0e5d4025294.zip edit It's probably easier to just do npm install https://github.com/expressjs/multer/tarball/d787546fdb389d8690cbef9a4103a0e5d4025294 |
|
@LinusU It's OK!!! |
|
I think that we need to figure out why it doesn't work on 0.10.x first... Or just drop support for it, but that would require a new major version. |
|
I just see that it only occurs on NodeJS 0.10.x. I think maybe I can't give you some advice useful,because I don't know these much. |
|
The problem is that this fix only works on 0.11 and newer, it doesn't fix the problem on 0.10. This can be seen in the travis build. |
|
Oh sorry,I know now.I can only wish you to solve it early. |
d787546 to
85226de
Compare
|
Rebasing to get Travis to run on more versions of Node |
85226de to
6fc57c7
Compare
6fc57c7 to
d96af4a
Compare
|
ping @jpfluger @hacksparrow I'm merging this now since we are getting a ton of bug reports because of this problem. My reasoning for it being a minor version bump is because I'm not breaking anything that worked before. I'm merely fixing it for all supported versions of Node, expect for 0.10. A lot of tests that was previously working are now broken not because of my changes in the library, but because I updated the tests to check that the stream is fully drained before considering the request as done (since this is what web browsers do). Node 0.10 was released 2013-03-11, that's a long time ago, especially in node land. The current stable version is 4.1.0 which is miles ahead. I don't see a reason why we should support 0.10. I propose that we drop support for 0.10 at the next major version ( I hope that this sounds good to you guys, let me know otherwise and we'll work something out. Cheers! So I actually managed to fix support for 0.10 and dropping the workaround specific code! Lets get this party started! I'm cutting a new release now 💯👍 |
|
👍 |
|
I still use multer@1.0.3 and that problem doesn't occur now.Maybe the reason is I update NodeJS into the newest version v4.0. |
|
@zyf0330 The patch hasn't been merged yet but maybe. I would still recommend updating to 1.0.5. |

This should hopefully fix a number of bugs where multer/the browser appears to hang.
I'm waiting on @mscdex comment in nodejs/node#2325 before merging thought, I might be fucking up something important.
Test this fix by installing as such: