Postman 上传文件

一,设置headers

KEY:Content-Type

VALUE:multipart/form-data

Postman 上传文件

 

二,设置Body

1 Key设置名为file(这个很重要)

2 File类型选择 File

3 Value上传图片

(图片需要放到Postman的file下!例如我的:C:\Users\xxx\Postman\files)

Postman 上传文件

 

java的上传方法:https://www.cnblogs.com/hanjun0612/p/14870522.html

Postman 上传文件

上一篇:POSTMAN JSON转接口文档 Collection v2.1 (recommended)


下一篇:解决Mixed Content:the page at‘https://' was loaded over HTTPS,but requested an insecure resource 'http://'