Search code examples
node.jsdownloadnode-webkitsave-as

Node-Webkit file download progress


I have the following link in my Node-Webkit app

<a id="updateAppVersion" href="http://<some_path>/newVersion.zip">New version available</a>

This link works fine, it displays the 'save as' dialog and the user can save the file normally.

My question is, is there an easy way to display the download progress inside the app like browsers do or i need to create my own? (if so how?).

Currently nothing is displayed when the user chooses the download location.


Solution

  • I don't think that nwjs includes this feature. If you choose to write your own mechanism, try request-progress:

    Tracks the download progress of a request made with mikeal/request, giving insight of various metrics including progress percent, download speed and time remaining

    check this answer for more options.