cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Uploaded unaligned file size

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 4 Mar 2005 00:17:22 +0100 (CET)

On Wed, 2 Mar 2005 ivan.makale_at_tiscali.it wrote:

> I tried curlpp example n. 13, FTP upload, both on Windows XP (.NET IDE) and
> with Linux (gcc, Eclipse). I have a problem with the file size, probably the
> reading function, as I can at most upload part of the file and get an error
> message like this:
>
> "Uploaded unaligned file size (671744 out of 680286 bytes)"

This is most often because you opened the file in text mode on windows, while
you got the size of the binary-mode version. Or vice versa.

> I tried in different ways, with different FTP servers and both in Windows
> and in Linux, with no success. Using curl executable (binary distribution
> for Windows) from command line I can upload with no problems. I also tried
> the example "ftpupload.c" of curl and the test program, even worse, crashed.

And you read the comment in there and adjusted the code accordingly?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-03-04