jquery uploadify ie9问题multipart未发送到服务器

时间:2013-03-08 11:28:58

标签: jquery spring-mvc uploadify

我正在使用jquery uploadify在我的基于Spring MVC的角度应用程序中上传图像。

图像上传在除IE9之外的所有浏览器中都很完美。

对于IE 9,我在服务器上出现以下错误

org.springframework.web.multipart.MultipartException: The current request is not a multipart request

但是相同的代码片段在其他浏览器和IE 10中也能正常运行。

任何人都可以指出我正确的方向。

1 个答案:

答案 0 :(得分:1)

<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.Jcrop.min.js"></script>
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.ui.widget.js"></script>
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.iframe-transport.js"></script>
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.fileupload.js"></script>
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.fileupload-fp.js"></script>
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.fileupload-ui.js"></script>
<script type="text/javascript" src="resources/scripts/jqueryUploadify/uploadHandler.js"></script>
<!--[if gte IE 8]><script src="resources/scripts/jqueryUploadify/jquery.xdr-transport.js"></script><![endif]-->

<link rel="stylesheet" href="resources/scripts/jqueryUploadify/jquery.Jcrop.css">
<link rel="stylesheet" href="resources/scripts/jqueryUploadify/jquery.fileupload-ui.css">

我之前错过了几个javascript文件,这导致了一个问题,现在在包含所有上述文件后解决了