Postman 上传文件

一,设置headers

KEY:Content-Type

VALUE:multipart/form-data

二,设置Body

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

2 File类型选择 File

3 Value上传图片

(图片需要放到Postman的file下!例如我的:C:UsersxxxPostmanfiles)

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

原文地址:https://www.cnblogs.com/hanjun0612/p/14870548.html