We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543f748 commit e11d092Copy full SHA for e11d092
lib/incoming_form.js
@@ -207,10 +207,6 @@ IncomingForm.prototype.handlePart = function(part) {
207
hash: self.hash
208
});
209
210
- file.on('error', function(err) {
211
- self.emit('error', err);
212
- });
213
-
214
this.emit('fileBegin', part.name, file);
215
216
file.open();
@@ -233,6 +229,10 @@ IncomingForm.prototype.handlePart = function(part) {
233
229
self._maybeEnd();
234
230
235
231
232
+
+ file.on('error', function(err) {
+ self.emit('error', err);
+ });
236
};
237
238
function dummyParser(self) {
0 commit comments