wx.uploadFile contentType漏传boundary导致后端报错?
发布于 5 年前 作者 sxue 9786 次浏览 来自 官方Issues

小程序使用wx.chooseImage上传本地相册图片到后端,后端用的MultipartFile接收,报错:the request was rejected because no multipart boundary was found

org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request;
 nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: 
    the request was rejected because no multipart boundary was found
1 回复

上传是wx.uploadFile

回到顶部