【问题标题】:Only IE Browser gives org.springframework.web.multipart.MultipartException: The current request is not a multipart request只有IE浏览器给出org.springframework.web.multipart.MultipartException: 当前请求不是多部分请求
【发布时间】:2012-08-23 15:00:34
【问题描述】:

我正在尝试使用 jquery fileupload.js 上传文件,spring。 上传文件的代码适用于 Mozilla 和 chrome 浏览器。但出现以下错误 *仅适用于 IE 浏览器*

org.springframework.web.multipart.MultipartException: The current request is not a multipart request.
at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.assertIsMultipartRequest(RequestParamMethodArgumentResolver.java:183)
at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.resolveName(RequestParamMethodArgumentResolver.java:149)
at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:82)
at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:74)

【问题讨论】:

    标签: jquery spring internet-explorer file-upload multipart


    【解决方案1】:

    首先,您使用的是哪个 jquery fileupload.js,将链接发布到项目中。
    如果你引用了jQuery-File-Upload,但是我遇到了同样的问题,原因是我与jquery.iframe-transport.js不匹配,我使用了another one,而jQuery-File-Upload使用了自己的版本,所以,我下载了this version并替换了之前的版本,在IE中就没有这个问题了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-25
      • 1970-01-01
      • 2017-06-20
      • 2021-11-16
      • 2012-08-12
      • 1970-01-01
      • 1970-01-01
      • 2018-06-01
      相关资源
      最近更新 更多