Progress Bar Limit

Cheered me up!

LOL :smiley:

Feeling better now :slight_smile:

[quote=234089:@Michel Bujardet]What’s new ? :smiley:

Sorry for repeating.[/quote]
Uhhhh. There is a double meaning in this. I like it!

:smiley:

I’m obviously slow before my first coffee …

Idea. If the values really overflow and change to negative numbers could you not copy them into Int64 variables and correct them?

That would work for the BytesReceived value. But how would you know if the totalBytes is as small as it says or over 2 GB?

If the value is >0 then use the value. If the value < 0 then correct it? I’m pretty sure you would never have a real file that had < 0 bytes.

But a 5gb file would be reported as 1 gb.
So you need to track how often it goes negative and correct by count*4 gb.

Just so I’m understanding this, the problem is the both the totalBytes and bytesReceived, if it’s just the bytesReceived, does using the folderitem.length help in anyway (to get the current file size).

[quote=234166:@Christian Schmitz]But a 5gb file would be reported as 1 gb.
So you need to track how often it goes negative and correct by count*4 gb.[/quote]

I never thought about anything larger than 4GB. CURLSMBS could possibly help here.

I would, however, question the sanity of trying to transmit files that large in a single upload. If the other end is intelligent it might be more reliable to try and chunk the upload somehow.

He’s uploading? Why did I not see that, in that case forget my suggestion as it may only work on download.

Ooops my mistake. Reading the case again, it looks like he is downloading rather than uploading.

It might be worthwhile seeing if the source server can do range requests and change the code to download the file in chunks into the final file. If the connection fails at some point it should be possible to resume rather than start again. This should improve reliability and work around the problem. If you wanted to be really clever you could possibly download several chunks at once.

Welcome to the Modern Age. BluRay, HD, 4k, kinda smallish 9 GB double-sided DVDs, etc etc.

My niece wants her wedding shot in 4k and then put the video online (in 4k!) for download …

Well, CURL supports also resuming download/upload transfers.