获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- wx.uploadFile contentType漏传boundary导致后端报错?
小程序使用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
2021-10-18 - uploadFile content-type 会自动添加boundary属性?
使用wx.uploadFile;设置了content-type为multipart/form-data; 模拟器上正常 但是真机上会追加boundary=WABoundary+1E0DBA29118DC2ABWA 即:Content-Type: multipart/form-data; boundary=WABoundary+1E0DBA29118DC2ABWA 但是我们现在不需要boundary 好奇怪,咋个可以去掉它
2022-10-31