curl-library
Re: Problem due to changes in new version in file upload
Date: Tue, 28 Oct 2008 14:42:18 +0100 (CET)
On Wed, 22 Oct 2008, Amit Nargund wrote:
Please don't top-post. The threading and quoting get all messed-up!
> IN the current code, First I am calculating the total size of the data to be
> posted and then passing that size to curl_easy_setopt(handle,
> CURLOPT_POSTFIELDSIZE_LARGE, (long long)size);
That's badness. This option wants an argument of type curl_off_t. It may or
may not be the same as long long.
> I am trying to upload large files on rapidshare.com, it starts uploading and
> after 1 percent is complete and does not do anything after that, although it
> does work for files of small sizes.
>
> For posting the contents I am using multipart data.
Then aren't you using libcurls multipart support? If so, then you shouldn't
use CURLOPT_POSTFIELDSIZE_LARGE at all...
-- / daniel.haxx.seReceived on 2008-10-28