【发布时间】:2014-04-06 23:06:55
【问题描述】:
我正在使用强大的模块https://github.com/felixge/node-formidable 来上传图片。我创建了一个单独的新项目和文件上传完美。
但是当我将它集成到我现有的项目中时。我收到以下错误:-
Error: Request aborted
at IncomingMessage.onReqAborted (D:\ProjectName\node_modules\express\node_modules\connect\node_modules\multiparty\index.js:131:17)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at abortIncoming (http.js:1911:11)
at Socket.serverSocketCloseListener (http.js:1923:5)
at Socket.EventEmitter.emit (events.js:117:20)
at TCP.close (net.js:466:12)
知道如何解决这个问题吗?
我尝试了 ON 事件:-
form.on('progress', function (bytesReceived, bytesExpected) {
console.log('PROGRESS');
console.log(bytesReceived);
console.log(bytesExpected);
});
上面代码的结果是:-
PROGRESS
0
488
它没有超越这个。
【问题讨论】: