aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_mime_filedata.3
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-09-04 09:20:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-09-04 09:20:24 +0200
commit2e4074c953e96cadc3182454fd437f9a348e37ce (patch)
tree7a4ed2cd14735c44bd62b41f95f864c36ec5e3c0 /docs/libcurl/curl_mime_filedata.3
parentd24c05b9081f7bf38f04f50f10c557eefee40f04 (diff)
docs: curl_mime_*.3 man page formatting edits
Diffstat (limited to 'docs/libcurl/curl_mime_filedata.3')
-rw-r--r--docs/libcurl/curl_mime_filedata.311
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/libcurl/curl_mime_filedata.3 b/docs/libcurl/curl_mime_filedata.3
index 71562edd0..e70e3b269 100644
--- a/docs/libcurl/curl_mime_filedata.3
+++ b/docs/libcurl/curl_mime_filedata.3
@@ -29,17 +29,18 @@ curl_mime_filedata - set a mime part's body data from a file contents
.BI " const char * " filename ");"
.ad
.SH DESCRIPTION
-curl_mime_filedata() sets a mime part's body content from the named file's
-contents.
+\fIcurl_mime_filedata(3)\fP sets a mime part's body content from the named
+file's contents.
\fIpart\fP is the part's to assign contents to.
+
\fIfilename\fP points to the nul-terminated file's path name. The pointer can
-be NULL to detach previous part contents settings.
-Filename storage can be safely be reused after this call.
+be NULL to detach previous part contents settings. Filename storage can be
+safely be reused after this call.
As a side effect, the part's remote file name is set to the base name of the
given \fIfilename\fP if it is a valid named file. This can be undone or
-overriden by a subsequent call to \fIcurl_mime_filename\fP().
+overriden by a subsequent call to \fIcurl_mime_filename(3)\fP.
Setting a part's contents twice is valid: only the value set by the last call
is retained.