IE9问题-Jquery-uploadify中不存在必需的MultipartFile []参数 [英] IE9 issue - Required MultipartFile[] parameter is not present with Jquery-uploadify
本文介绍了IE9问题-Jquery-uploadify中不存在必需的MultipartFile []参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个有角度的Spring MVC应用程序,在这里我使用jquery-uploadify插件上传文件.下面是代码
I have angular Spring MVC application, where i am using jquery-uploadify plugin to upload files. Below is the code
我包含的不同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.
Below is the javascipt to load the file upload.
$(this).fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: uploadSettings.upload_url,
type: 'POST'
});
此代码在IE10 +,chrome,firefox中可以正常工作
This code works fine in IE10+, chrome, firefox
但是在IE9上失败
But it fails on IE9
并给出-服务器上不存在必需的MultipartFile []参数
and gives - Required MultipartFile[] parameter is not present on server
请提出对此的可能解决方法
Please suggest what is the possible fix for this
推荐答案
我错过了下面的javascript文件,该文件解决了该问题
I missed the below javascript file, which solved the issue
<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.iframe-transport.js"></script>
这篇关于IE9问题-Jquery-uploadify中不存在必需的MultipartFile []参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文