jfeldstein/jQuery.AjaxFileUpload.js

Issues on Firefox

zhuolikevin opened this issue · 1 comments

Hi Jordan, I just found it somehow doesn't work when using the plugin in Firefox.
After looked into it, it seems to be the trouble in these codes

The uploading process seems to be more time-consuming in FF than other browsers. So before the file is actually uploaded, the wrapper form has been torn down.

I modified it as following and it works

setTimeout(function() {
    element.siblings().remove();
    element.unwrap();
}, 4);

Maybe you can take a look at it. :)

Setting a time delay as 4ms may still fail on some Firefox versions.
Anyone has better ideas?