java使用xheditor Ajax异步上传错误

  java使用xheditor Ajax异步上传时候错误如下:the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/octet-stream

  查看官方文档:upMultiple默认为true,如果浏览器支持html5,会使用html5上传,如果后台代码不支持html5上传就会报错,解决方案是设置:upMultiple:false即可。

上传类型 request.getContentType()的值
html5 application/octet-stream
html4 multipart/form-data; boundary=----WebKitFormBoundaryJj2BWJ86pBWIHhuc

原文地址:https://www.cnblogs.com/haha12/p/6202506.html