Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
xhr.upload detection is failing #4560
I was having trouble with uploading to my server. After 10 seconds the request would be canceled and start again. I read elsewhere about setting the ajax.timeout. This helped, but it did not deal with the core issue; during an active upload the xhr should abort unless things have stalled.
For me, the test for 'hasUpload' returns false in Firefox/Chrome on mac. Specifically it's this tidbit of code that's causing the problem. For me this returns false on all devices/browsers tested:
I noticed a note in the code about how 'IE throws an error...'. Do you know the version of IE has an error with the code:
I tested in IE8+ via VMWare and did not have a problem.