Current request is not a multipart request

tech2023-10-08  100

@## 标题(Current request is not a multipart request)

配置、方法、传参都正确,但是就是报错Current request is not a multipart request,最后发现测试工具的content-type问题,在测试接口的时候content-type设置为application/json,上传文件接口测试去掉content-type属性或content-type设置为multipart/form-data,不然会报此错误.好几次都是这样,得记录下

最新回复(0)