nextcloud / updater

:arrows_counterclockwise: The updater app to keep your Nextcloud up-to-date
GNU Affero General Public License v3.0
45 stars 32 forks source link

Progress during update downloading #188

Open joekerna opened 6 years ago

joekerna commented 6 years ago

Lately the downloading step during the web baser updater is taking very long (~10 Minutes). This might be due to my internet connection, I'm not sure.

That led to the point where I wasn't sure if the the download was even progressing or if it has failed.

My enhancement idea is, to show some sort of progressbar or percentage value to signal, that downloading is still progressing?!

Thanks

stefan123t commented 4 years ago

I would like to add that resume downloads might be an option to prevent the dreaded "Parsing response failed. Step 4 is currently in process. Please reload this page later." Error Message due to the max_execution_time parameter which can not be set/altered with my shared webhosting provider.

Please consider using the CURLOPT_RANGE parameter to resume from the current downloaded file size as used in the following two examples:

Resume HTTP downloads in PHP using cURL or fsockopen https://www.ankur.com/resume-http-downloads-php-curl-fsockopen.php

PHP Curl Downloader with resume support https://gist.github.com/ndunks/778c7efad0956e0f99deae73c52e718f

A nice benefit would be that you could add the progress bar as requested in this issue based on the current filesize retrieved from the nextcloud update server.

Kind regards, Stefan