Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE11 aborts upload after 30s #137

Closed
crispyduck00 opened this issue Mar 12, 2019 · 2 comments
Closed

IE11 aborts upload after 30s #137

crispyduck00 opened this issue Mar 12, 2019 · 2 comments

Comments

@crispyduck00
Copy link

crispyduck00 commented Mar 12, 2019

IE11 aborts the ajax file upload always after 30s.

Trying to analyze this I found out that IE also does not like following syntax:

946                     xhr.ontimeout = (() => { 
947                         alert('Error: Server Timeout'); 
948                     }); 

Researching for the upload issue with IE11 I came across a post which mentioned that it helps to add a empty function for in progress. So I changed the code as followed, which does no more throw a syntax error and also solves the IE file upload:

946                     }).on("progress", function () {
947                     }).on("timeout", function () {
948                        alert('Error: Server Timeout');

As I am no developer, I have no idea if I am doing it correct, but this seems to fix the Problems with IE and does also not lead to problems with other browsers.

regards,
crispyduck

prasathmani pushed a commit that referenced this issue Mar 13, 2019
@prasathmani
Copy link
Owner

Fixed

@crispyduck00
Copy link
Author

Perfect Thanks!

ner00 pushed a commit to ner00/tinyfilemanager that referenced this issue May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants