šŸ“„Download size and progress

by Ricardo FernƔndez Serrata

Version 2 (May 17, 2021)

Download (26 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

3.0 average rating from 1 reviews

5 stars
0
4 stars
0
3 stars
1
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.