2

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.

Ivan Dokov
  • 4,013
  • 6
  • 24
  • 36

1 Answers1

-1

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) {
});
Aurélien Thieriot
  • 5,853
  • 2
  • 24
  • 25
  • I think this formidable module is for uploading files only or I am wrong? If I am wrong can you please give me some example code – Ivan Dokov Feb 21 '14 at 09:30