libcurl avatar upload works now ;-)

This commit is contained in:
doitux
2009-02-26 21:39:04 +00:00
parent ed3ec99344
commit cc197bbc00
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ UploadHelper::InternalInit(const string &/*url*/, const string &targetFileName,
// Assume that the following calls never fail.
curl_easy_setopt(GetData()->curlHandle, CURLOPT_READFUNCTION, readFunction);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_READDATA, GetData()->targetFile);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_INFILESIZE_LARGE, filesize);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)filesize);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_USERPWD, GetData()->userCredentials.c_str());
curl_easy_setopt(GetData()->curlHandle, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(GetData()->curlHandle, CURLOPT_PUT, 1L);