mirror of https://github.com/moparisthebest/curl
form.d: add examples of `,`/`;` for file[name]
Fixes #7415 Closes #7417
This commit is contained in:
parent
d84fb30681
commit
04ce9e853c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue