summaryrefslogtreecommitdiff
path: root/lib/formdata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-03-11 15:18:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-03-11 15:18:59 +0000
commit9f374c20507940862601c3dbad3250a44541a85e (patch)
treea9b9d9c07fdba9dbb01592b959b8e61c4418486d /lib/formdata.h
parent579985242455741d34df17eea94174772bbe4e32 (diff)
downloadcurl-9f374c20507940862601c3dbad3250a44541a85e.tar.gz
Added support for CURLFORM_FILENAME to set the filename field of a file
part.
Diffstat (limited to 'lib/formdata.h')
-rw-r--r--lib/formdata.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/formdata.h b/lib/formdata.h
index 40f8c9472..7ab210064 100644
--- a/lib/formdata.h
+++ b/lib/formdata.h
@@ -8,7 +8,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2002, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* In order to be useful for every potential user, curl and libcurl are
* dual-licensed under the MPL and the MIT/X-derivate licenses.
@@ -44,6 +44,9 @@ typedef struct FormInfo {
long contentslength;
char *contenttype;
long flags;
+
+ char *showfilename; /* The file name to show. If not set, the actual
+ file name will be used */
struct curl_slist* contentheader;
struct FormInfo *more;
} FormInfo;