I have a problem with a large file upload. I tried to download smaller files and it works well, but when I try to download a larger file (700 mb or more), the node.js server gives me an error:
Error: Request aborted at IncomingMessage.onReqAborted (/home/xxx/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:465:12)
He does not even reach the reading state.
I use
I turned on
app.use(express.bodyParser({limit: '2048mb'}));
And I think I should mention this; after receiving the above error, the file starts to load again and fails. Again, there is no problem with smaller files. So my question is, how can I efficiently transfer large files using this method, or is there a better way to do this? Thank.
source
share