Proper form file upload. https://medium.com/@petehouston/upload-files-with-curl-93064dcccc76
This commit is contained in:
1 parent
5a3a421a04
commit
da50501428
1 file changed
+2
-2
@@ -273,7 +273,7 @@ If the user runs:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ curl -F -d myfile=@filename.txt http://kapow.example:8080/
|
$ curl -F 'myfile=@filename.txt' http://kapow.example:8080/
|
||||||
|
|
||||||
then, when handling the request:
|
then, when handling the request:
|
||||||
|
|
||||||
@@ -301,7 +301,7 @@ If the user runs:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ curl -F -d myfile=@filename.txt http://kapow.example:8080/
|
$ curl -F 'myfile=@filename.txt' http://kapow.example:8080/
|
||||||
|
|
||||||
then, when handling the request:
|
then, when handling the request:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user