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就好。