jquery uploadify 在FF下無效的解決辦法

字號:


    Js代碼
    $('#file_upload').uploadify({
    buttonImage: '${ctx }/commons/uploaddify/img/browse-btn.png',
    swf :'${ctx }/commons/uploaddify/uploadify.swf',
    uploader :'../servlet/defaultDispatcher;jsessionid=${pageContext.session.id}?__action=xxx',
    fileTypeExts: '*.jpg;*.png;*.gif;*.bmp',
    fileTypeDesc: '圖像文件',
    formData: {
    timestamp: new Date().getTime()
    },
    onSelect: function(file){
    //重寫校驗
    },
    onUploadProgress: function(file,bytesUploaded,bytesTotal,totalBytesUploaded,totalBytesTotal){
    $('#pregress').html('總共需要上傳'+bytesTotal+'字節(jié),'+'已上傳'+totalBytesTotal+'字節(jié)');
    },
    onUploadSuccess: function(file){
    //上傳成功
    }
    });
    參考網(wǎng)上解決方案,在uploader路徑后面增加jsessionId就好。