cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: TR: large file support with ftp

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 15 Jun 2004 14:58:36 +0200 (CEST)

On Tue, 15 Jun 2004, Lemaire Jean-Louis wrote:

> With curl, in ftp'mode, I can get large file (> 3Gb), but when I put the
> same file, I receive the errot message

> curl: (18) Uploaded unaligned file size (-1135544320 out of 3159422976 bytes)

> However, the transfert is correct and the file is not corrupted.

I take it the same problem appeared on both your platforms?

Please show us more details, such as commands to and responses from the
server.

It looks _almost_ as if the byte counter wraps and is used as a signed 32bit
number, but 2^31 - -1135544320 does not equal 3159422976!

What if you try to upload a file that is exacly 2147483649 bytes big?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-06-15