Postman: upload test

1. Set a good interface address and submission method

image

2. Set header

Content-Type:multipart/form-data

3. Set the body

Selected to: form-data

key to the server and consistent

Choose their own files to upload, click on the "send" can be.


image


When selecting upload files, postman will be given a warning, saying that the file is not in the working directory.

Set as follows:

File—>Settings

image

Guess you like

Origin www.cnblogs.com/huiy/p/11744183.html