摘要: 项目中使用postman模拟上传文件接口时,总是不成功,发现content-type设置不对,设置head的contentType后,还是不行,后来无意中发现文件参数默认的content-type类型设置有问题。 服务端接口: 代码中对参数的content-Type做了判断: 解决方法: 默认情况下 阅读全文
posted @ 2019-05-27 16:25 水木神舟10 阅读(14983) 评论(0) 推荐(1) 编辑