aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-21 12:42:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-21 12:42:28 +0000
commite80f566a1489401f04e3ed1a08ccb456cf778954 (patch)
treedb1efca074fa85bda92acbfc2937d571792d9228 /docs
parent1729918777a31733a8be724929378fb8e4a858b3 (diff)
added comment for windows people about READFUNCTION being needed
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/ftpupload.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c
index e69ec2d00..68b86fdf4 100644
--- a/docs/examples/ftpupload.c
+++ b/docs/examples/ftpupload.c
@@ -72,6 +72,12 @@ int main(int argc, char **argv)
/* now specify which file to upload */
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
+ /* NOTE: if you want this example to work on Windows with libcurl as a
+ DLL, you MUST also provide a read callback with
+ CURLOPT_READFUNCTION. Failing to do so will give you a crash since a
+ DLL may not use the variable's memory when passed in to it from an app
+ like this. */
+
/* and give the size of the upload (optional) */
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, file_info.st_size);