Uploading Files with a POST Request in Postman
Автор: Postman
Загружено: 29 мар. 2021 г.
Просмотров: 188 581 просмотр
Learn multiple ways you can upload actual files in a POST request using Postman.
For more information on sending body data and header requirements, read more here:
https://learning.postman.com/docs/sen...
The HTTP POST request method is meant to transfer data to a server.
Most people are familiar with sending data in a POST request as query string parameters, as shown here, or in the body of the request itself as either raw text or JSON.
Another way to send data in a POST request is to upload an actual file. Here are two ways to do that in Postman.
Using Form Data:
1. Click the form-data button.
2. Find the hidden dropdown on the right side of the box, change it from text to file.
3. Click Select Files, upload your file (e.g., a PDF), and give it a key name.
4. Click Send to see the uploaded file in the response under the files object.
Using Binary Data:
1. Click the binary button.
2. Click Select File, upload your file, and click Send.
Both methods allow you to upload files via a POST request.
Contact us:
If you have questions or comments about any Postman features, pricing, or anything else, our team is always ready. Simply visit our Support Center to get started:
https://www.postman.com/support

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: