aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-05 22:29:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-05 22:29:29 +0000
commitb60e0fa97ed7ddc66d0ad6d00dfd78319bb6ad36 (patch)
tree50a5aed5fe1754b59f331e8c4337c8301121e1c7 /docs/examples
parent41c6f68d949bf6021fbf4d3488bbf38efa898816 (diff)
David J Meyer's large file support.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/ftpupload.c2
-rw-r--r--docs/examples/httpput.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c
index 2ac874537..d51e43c4d 100644
--- a/docs/examples/ftpupload.c
+++ b/docs/examples/ftpupload.c
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
/* and give the size of the upload (optional) */
- curl_easy_setopt(curl, CURLOPT_INFILESIZE, file_info.st_size);
+ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, file_info.st_size);
/* Now run off and do what you've been told! */
res = curl_easy_perform(curl);
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c
index 48c9f70ec..3b3fac136 100644
--- a/docs/examples/httpput.c
+++ b/docs/examples/httpput.c
@@ -85,9 +85,8 @@ int main(int argc, char **argv)
/* now specify which file to upload */
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
- /* and give the size of the upload, make sure that we don't accidentally
- pass a larger variable type than "long". */
- curl_easy_setopt(curl, CURLOPT_INFILESIZE, (long) file_info.st_size);
+ /* and give the size of the upload */
+ curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, file_info.st_size);
/* Now run off and do what you've been told! */
res = curl_easy_perform(curl);