aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/ftpupload.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/ftpupload.c')
-rw-r--r--docs/examples/ftpupload.c2
1 files changed, 1 insertions, 1 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);