jquery.uploadify上传图片,用IE浏览器上传没问题,但换成其他浏览器就不对了,还不能跳转方法!急!!代码$("#uploadify").uploadify({
'uploader': pageContext+'/manager/js/framework/jquery.uploadify/swf/uploadify.swf', 
'script': 'bbsNoteAction!deleteproductsImgdasda.action?account.id='+$("#ids").val(),
'cancelImg': pageContext+'/manager/js/framework/jquery.uploadify/img/cancel.png',
'queueID' : 'fileQueue', // 和存放队列的DIV的id一致
'fileDataName': 'file', // 必须,和以下input的name属性一致
'auto': false, // 是否自动开始
'folder': 'old',//上传文件存放的目录
'multi': false, // 是否支持多文件上传
'buttonText': 'select file', // 按钮上的文字
'fileDesc': '请选择jpg,gif文件', // 如果配置了以下的'fileExt'属性,那么这个属性是必须的
'fileExt': '*.jpg;*.gif',// 允许的格式
'onSelect': function(e, queueId, fileObj)
{
$("#fileUpload").show();
},
'onCancel': function(e, queueId, fileObj)    //点击上传文件后面的删除图片时触发
{
$("#fileUpload").hide();
},
'onComplete':function (event, queueID, fileObj, response, data) 
{
$("#fileUpload").hide();
alert(response);
if("1"==response){
alert("图片上传失败,CID为空");
}else{
$("#addImgTd").hide();
$("#productImage1Src").attr("src",getRootPathsssss()+"/"+response);
$("#productImage1").val(response);
$("#deleteImgTd").show();
$("#imagePathId").val(response);
$("#deleteImgLink").show();
//alert("图片上传成功");
}
}
});

解决方案 »

  1.   

    先检测浏览器有没有安装flash
    然后注意flash上传的sessionid的问题,具体请自行百度
      

  2.   

    火狐谷歌浏览器支持HTML5 IE10也支持HTML5 支持HTML5的浏览器flash下 sessionID 不共享 这样会导致你没有登录 被拦截器拦截了  你可以用火狐fixbug看到返回的数据应该是没有登录或者session为空
      

  3.   

    首先检查是否安装flash,如果有原input是会被隐藏的
    然后就是是sessionid的问题,自己百度解决方法