šŸ“„Download size and progress

by Ricardo FernƔndez Serrata

Version 4 (April 22, 2022)

Download (44 downloads)

Detects size of remote file before downloading and shows progress by checking the size of the local file at regular intervals.

The reason why Delay is placed right after the "updater" fiber is forked, is to give enough time for AM (and 2nd HTTP request) to create the "Download/Automate/" directory and to only check the size of local file after it has changed to a non-zero value.

This only works correctly if "Content-Length" metadata exists within the response header of the 1st HTTP request.

The default pre-populated URL is Android SDK Platform-Tools for Windows because it's the best example file I could find lol.

LICENSE: https://unlicense.org/

3.0 average rating from 1 reviews

5 stars
4 stars
3 stars
2 stars
1 star

Rate and review within the app in the Community section.