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

 

java使用xheditor Ajax异步上传错误

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2022-01-01
  • 2021-10-14
  • 2021-06-19
  • 2021-12-14
  • 2022-12-23
  • 2021-06-20
相关资源
相似解决方案