FTP: Filesize shown wrong for bigger files than 2GB

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Papst01
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-23, 14:59 UTC

FTP: Filesize shown wrong for bigger files than 2GB

Post by *Papst01 »

I tried to download a file I know with est. 9GB. But the TC shows me only a Size of "1,9G".
Nevertheless I started the download and now I've 1GB downloaded so far. But the TC say's I've just done 12%. So I assume that the client recognises the file size correctly but displays it wrong.
Maybe a 32bit-integer bug?

Regards and thanks for the create product!
Papst
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Papst01.

To the best of my knowledge the Total Commander 7.56a FTP client has got no problem whatsoever in displaying filesizes larger than 2 GB, provided the FTP server reports filesizes correctly.
I use the T.C. FTP client a lot on Unix servers which host large Oracle databases. Filesizes of about 20 GB are the rule rather than the exception. Total Commander displays the filesizes correctly.

So you might like to find out what the FTP server really displays in your case. While connected to the server using the T.C. built-in FTP client, put the cursor on any file and press <Alt><Enter>. This will return the complete folder listing in its raw format, i.e. the raw data which the server passes to T.C. Please, check what the filesizes look like.

Kind regards,
Karl
--
Total Commander 7.56a running on various Windows versions, 32-bit and 64-bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed TC's FTP client can handle files >4GB without problems. Some servers report the wrong size, but still allow to download the entire file, so it's worth a try.
Author of Total Commander
https://www.ghisler.com
Papst01
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-23, 14:59 UTC

OK I check it

Post by *Papst01 »

I wanted to add a screenshot, but the forum doesn't allow me to... something like have to be member at least one day and wrote at least on post....

Ok back on topic: An ALT-RETURN reported me a size of 6676MB. I've downloaded 8,7GB and thats (I think) the correct size. But if I just see the file size on the server it tells me 1.9GB - Very confusing :?

Oh should say that the download yesterday finished with the correct size and the file was ok? So generally it works. But the user interface doesn't report me the correct size.

Maybe the problem is related with the proxy I'm behind?

regards
Papst
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

Do what karlchen suggested. Get raw directory listing using Alt+Enter, find the line with your big file (the format is one file per line) and check the size there. Or just post the whole line here and we'll check it for you.
Papst01
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-23, 14:59 UTC

Post by *Papst01 »

Hi Sob,

maybe I didn't make myself clear, I did what karlchen said.
Here is the Screenshot. As you can see it reports 6676MB, but I've downloaded 8,7GB and thats (I think) the correct size. Very confusing :?

regards
Papst
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

You're right, it's TC's fault. When the proxy is HTTP proxy with FTP support then all sizes above 2GB are reported by TC as 2147483647 bytes. Tested with squid/2.6.STABLE21. Complete file line:

Code: Select all

<A HREF="slackware-13.0-install-dvd.iso"><IMG border="0" SRC="http://proxy/squid-internal-static/icons/anthony-unknown.gif" ALT="[FILE]"></A> <A HREF="slackware-13.0-install-dvd.iso">slackware-13.0-install-dvd.iso</A> . Apr 25 22:25   3739M <A HREF="slackware-13.0-install-dvd.iso;type=a"><IMG border="0" SRC="http://proxy/squid-internal-static/icons/anthony-text.gif" ALT="[VIEW]"></A> <A HREF="slackware-13.0-install-dvd.iso;type=i"><IMG border="0" SRC="http://proxy/squid-internal-static/icons/anthony-box.gif" ALT="[DOWNLOAD]"></A>
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the additional info regarding HTTP, I will check that.
Author of Total Commander
https://www.ghisler.com
Post Reply