0

我有角度 Spring MVC 应用程序,我在其中使用 jquery-uploadify 插件来上传文件。下面是代码

我包含的不同 js 文件

<!--  files for image uploader extension  -->
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.Jcrop.min.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>
<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE8+ -->
<!--[if gte IE 8]><script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.xdr-transport.js"></script><![endif]-->

下面是加载文件上传的javascipt。

 $(this).fileupload({
            // Uncomment the following to send cross-domain cookies:
            //xhrFields: {withCredentials: true},
            url: uploadSettings.upload_url,
            type: 'POST'
});

此代码在 IE10+、chrome、firefox 中运行良好

但它在 IE9 上失败了

并给出 - 服务器上不存在所需的 MultipartFile[] 参数

请建议对此的可能解决方法是什么

4

1 回答 1

0

我错过了下面的 javascript 文件,它解决了这个问题

<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.iframe-transport.js"></script>
于 2013-03-20T09:45:35.860 回答