CSS: api request body disposition form-data Example

By

CSS Example: This is the "api request body disposition form-data" Example. compiled from many sources on the internet by SimpleTutorials.org

API request body disposition form-data

POST http://example.com/api/upload HTTP/1.1
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="first"; filename="input.txt"

// The 'input.txt' file will be uploaded
< ./input.txt

--boundary
Content-Disposition: form-data; name="second"; filename="input-second.txt"

// A temporary 'input-second.txt' file with the 'Text' content will be created and uploaded
Text
--boundary
Content-Disposition: form-data; name="third";

// The 'input.txt' file contents will be sent as plain text.
< ./input.txt --boundary--



* Summary: This "api request body disposition form-data" CSS Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others