使用ide 上传文件 代替postman
上传文件
- 环境文件 http-client.private.env.json
{
"dev": {
"host": "http://localhost:15731/api/v1/",
"jwt": ""
}
}
新建文件 .http后缀结尾即可
### 上传文件
POST {{host}}/base/upload
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="file.txt"
Content-Type: multipart/form-data
< C:\Users\Administrator\PycharmProjects\panan-zheliban\api-http\files\file.txt
--WebAppBoundary--
标签:文件,http,form,webstrom,idea,phpstrom,Content,file,上传
From: https://www.cnblogs.com/guanchaoguo/p/16870188.html