日期:2014-05-17  浏览次数:20790 次

JQuery上传插件Uploadify浏览器支持问题(大神帮帮忙)
JQuery上传插件Uploadify 浏览器问题:
WIN7 系统  + IE8 上传正常。
WINDOWSXP 系统 +IE8 上传不了,问题调试发现 action 中的 upload 方法中

Map<String, MultipartFile> fileMap  没有值,不知道为什么。

但是   WIN7 系统  + IE8     或者 WINXP+谷歌浏览器 都是有值的。
有哪位大哥大姐大仙们遇到过这样的问题吗,救救我吧!!!!


JS方法
function uploadify(){
$("#file_upload").uploadify({
'method'        : 'post',
        'height'        : 27,
        'width'         : 80,
        'buttonText'    : '添加附件...',  
        'swf'           : getRootPath()+'/AircrewHealth/resources/js/uploadify/uploadify.swf?ver=' + Math.random(),  
        'uploader'      : getRootPath()+'/AircrewHealth/upload.do;jsessionid='+$("#sessionUID").val()+'?method=upload&jsessionid=' + $("#sessionUID").val(),  
        'auto'          : false,
        'fileSizeLimit' : '30720KB',
        'fileTypeExts'  : '*.doc;*.docx; *.jpg; *.rar;*.html;*htm;*.xls;*.xlsx;',
        'cancelImg' :  getRootPath()+'/AircrewHealth/resources/js/uploadify/uploadify-cancel.png',
        'uploadLimit' : 3,
        'onUploadStart' : function(file) {
        },  
        'onUploadSuccess':function(file,data, response){
         alert('上传文件: ' + file.name + '\n上传状态: ' + response + '\n上传服务器路径:' + data);
         //alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
          $("#tempFileName").val(file.name);
          $("#"+idName).val(data);
        },
        'onUploadComplete':function(){  
            // $('#importLispDialog').window('close');  
         }  
    });
}



ACTION 方法

@SuppressWarnings("unused")
@RequestMapping(params = "method=upload", method = RequestMethod.POST)
public @ResponseBody String upload(HttpServletRequest request, HttpServletResponse response) {
// request = new MulpartRequestWrapper(request);

String responseStr="";  
    MultipartHttpServletRe