postMan 测试上传文件(导入Excel)接口
1.post请求,首先选择body,格式选择form-data
2.然后在key里,最右边有一个选择,选择File,value就可以弹出文件框了
3.还有一点需要注意
你上传的文件必须在postMan的工作空间下,否则会提示 This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.
工作空间路径查看方法
1.File - Settings
2.
下班记得打卡