diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-08 15:28:04 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-08 15:28:04 +0100 |
commit | c2bc47ddb88057a5cc39c51cd1a11c6e040eefbc (patch) | |
tree | 87210f886a042067c2ddafc6bffb8b20aa39bace /docs | |
parent | 5e6c04f913c4ad44cf54df498899ccd81bd8f3f9 (diff) |
curl_formadd.3: *_FILECONTENT and *_FILE need the file to be kept
Reported-by: Frank Gevaerts
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libcurl/curl_formadd.3 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/libcurl/curl_formadd.3 b/docs/libcurl/curl_formadd.3 index 6923913d4..bf1b11e1a 100644 --- a/docs/libcurl/curl_formadd.3 +++ b/docs/libcurl/curl_formadd.3 @@ -105,6 +105,8 @@ content then you must make sure strlen() on the data pointer returns zero. followed by a filename, causes that file to be read and its contents used as data in this part. This part does \fInot\fP automatically become a file upload part simply because its data was read from a file. + +The specified file needs to kept around until the associated transfer is done. .IP CURLFORM_FILE followed by a filename, makes this part a file upload part. It sets the \fIfilename\fP field to the basename of the provided filename, it reads the @@ -117,6 +119,8 @@ providing multiple \fBCURLFORM_FILE\fP arguments each followed by the filename The given upload file has to exist in its full in the file system already when the upload starts, as libcurl needs to read the correct file size beforehand. + +The specified file needs to kept around until the associated transfer is done. .IP CURLFORM_CONTENTTYPE is used in combination with \fICURLFORM_FILE\fP. Followed by a pointer to a string which provides the content-type for this part, possibly instead of an |