-
-
Notifications
You must be signed in to change notification settings - Fork 8k
IE8 doesn't fire load events (iframe transport) if the upload takes too long #3045
Comments
If the iframe transport completeCallback is never called, it means the load event of the iframe never fires, which would be a bug in IE8, as there's no error event for iframes. |
Hi, This is not caused by fiddler. I noticed this issue first on my virtual server which is over a non-local network while uploading a large file( 570 MB) . When uploading to that server I noticed that when the upload is taking long time, the UI isn't updated( in IE8) after the upload was complete. It seems that what causing this has to do with how long it takes to upload a file. If I upload a 25 MB file with upload speed 1mbits then every thing is fine and completeCallback gets called and the UI gets updated after the upload is completed. However, if I set the upload speed to 250 kbits then completeCallback doesn't get called after the upload is completed. |
OK, I'll mark this as a browser bug then. |
Thanks for the quick response! Yes, this seems to only happen in IE( i have only tested IE8 on win7 and xp). I set forceIframeTransport to true and tested uploads on firefox and chrome and they are behaving as expected. Would you have any suggestions for workaround? I have sequentialUploads set to true. Due to this issue, On IE8 it won't start another upload because the previous one stays in the processing state for ever which doesn't allow other uploads to start. Thanks |
You could try adding a timeout and trigger a done event manually, but this would be a very dirty workaround. |
Hi, Adding style="display:none; to iframe tag in jquery.iframe-transport.js seems to fix this issue: <iframe style="display:none;" src="' + initialIframeSrc +
'" name="iframe-transport-' + counter + '"></iframe>' Thanks |
I haven't reproduced this yet, seems very weird. |
Yes, It is weird. Another quirky IE issue :). |
Hi,
I setup jQuery File Uplaod while ago and have been testing it for a while. It works great on most browsers and devices. However, there seems to be an issue in IE8. In my test environment I can upload a 25 MB file without any issues. The file gets uploaded and then the UI is updated after receiving response back from server. In fiddler I can see the response back from server and then in IE debugging tool i can see that "completeCallback" in jquery.iframe-transport and "done" are called.
If I throttle the upload speed (to be around 250 kbits), the file still gets uploaded and the server replies with the result which can be confirmed using fiddler. But completeCallback doesn't get called in jquery.iframe-transport and hence the UI still continues showing the progress bar even though the upload is completed.
This issue only happens in IE ( I have only been testing using IE8). I also testing the Blueimp Demo and got the same result.
I have been trying to find out what causing this and have had no luck so far. Any ideas?
Thanks
Taher
The text was updated successfully, but these errors were encountered: