postman test upload pictures Interface

1, fill out the request and address information
2, note Headers part here is not to write anything.
If there is a Content-Type header before, it will upload failed.

Here Insert Picture Description
2. Select Body
Select the Data-form
Key: receiving a file name parameter specified in the background (you remember not pass the image name)
Key format options for File ( value will automatically become selected files)
Here Insert Picture Description
3. click send data returned will be able to get success
Here Insert Picture Description

Published 44 original articles · won praise 1 · views 1472

Guess you like

Origin blog.csdn.net/cc_park/article/details/103675339