summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2021-07-16 06:30:55 -0400
committerDaniel Stenberg <daniel@haxx.se>2021-07-16 23:48:23 +0200
commit04ce9e853c96388e59148fc145079d365e38b426 (patch)
treed63524fc1eb9443eea47de1243ad620dd18d465a /docs/cmdline-opts
parentd84fb306810f63bf3cbd08dffa58381735e495c9 (diff)
downloadcurl-04ce9e853c96388e59148fc145079d365e38b426.tar.gz
form.d: add examples of `,`/`;` for file[name]
Fixes #7415 Closes #7417
Diffstat (limited to 'docs/cmdline-opts')
-rw-r--r--docs/cmdline-opts/form.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cmdline-opts/form.d b/docs/cmdline-opts/form.d
index 2c65ddd9b..e25fe4b6b 100644
--- a/docs/cmdline-opts/form.d
+++ b/docs/cmdline-opts/form.d
@@ -59,11 +59,11 @@ filename=, like this:
If filename/path contains ',' or ';', it must be quoted by double-quotes like:
- curl -F "file=@\\"localfile\\";filename=\\"nameinpost\\"" example.com
+ curl -F "file=@\\"local,file\\";filename=\\"name;in;post\\"" example.com
or
- curl -F 'file=@"localfile";filename="nameinpost"' example.com
+ curl -F 'file=@"local,file";filename="name;in;post"' example.com
Note that if a filename/path is quoted by double-quotes, any double-quote
or backslash within the filename must be escaped by backslash.