IE9 issue - Required MultipartFile[] parameter is

2019-08-30 00:36发布

I have angular Spring MVC application, where i am using jquery-uploadify plugin to upload files. Below is the code

The different js files i have included

<!--  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]-->

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'
});

This code works fine in IE10+, chrome, firefox

But it fails on IE9

and gives - Required MultipartFile[] parameter is not present on server

Please suggest what is the possible fix for this

1条回答
戒情不戒烟
2楼-- · 2019-08-30 01:13

I missed the below javascript file, which solved the issue

<script type="text/javascript" src="resources/scripts/jqueryUploadify/jquery.iframe-transport.js"></script>
查看更多
登录 后发表回答