Reputation: 4133
I have to build a download manager for big files (over 500MB) for Mac, PC and Linux. I am going to use App.js to make the client program. The idea for this manager is to keep the current download progress if the connection drops.
My question is how to make save the current download state/% and continue when the connection is OK.
Upvotes: 2
Views: 2546
Reputation: 5923
I don't know if you are OK using a library for it or if your prefer staying vanilla. But there is modules like formidable
:
https://github.com/felixge/node-formidable
It seems to be made for huge files and provide you a special event for watching progress:
form.on('progress', function(bytesReceived, bytesExpected) {
});
Upvotes: -1