I am using formidable module https://github.com/felixge/node-formidable to upload images. I created a separate new project & file upload works perfectly.
But when i integrate it in my existing project. I get following error :-
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)
Any idea How to Solve this?
I tried ON event :-
form.on('progress', function (bytesReceived, bytesExpected) {
console.log('PROGRESS');
console.log(bytesReceived);
console.log(bytesExpected);
});
It gives me result for above code as :-
PROGRESS
0
488
It doesn't go ahead of this.