Uh oh!
There was an error while loading. Please reload this page.
Fix issue where xhr.upload is undefined on Android - #6986
Conversation
facebook-github-bot
commented
Apr 14, 2016
dsibiski
commented
Apr 15, 2016
@ryanlntn Thanks for the PR! I was looking at constructor(){
...
this.upload=undefined;/* Upload not supported yet */
...
}I wonder what the comment means? Is that still true? It appears to be working with the fix here... @nicklockwood@mkonicek@lexs@philikon any thoughts? |
philikon
commented
Apr 15, 2016
Yeah, I don't see any reason why we can't at least expose the I actually have a work-in-progress to make XHR a proper |
philikon
commented
Apr 17, 2016
Ok, I cleaned up my patched and submitted it as a PR: #7017. |
ghost
commented
May 8, 2016
@philikon would you mind taking a look at this pull request? It's been a while since the last commit was reviewed. |
philikon
commented
May 9, 2016
We can close this PR, it's been superseded by #7017. |
When attempting to set
xhr.upload.onprogresson Android I get the following error:undefined is not an object (evaluating 'xhr.upload')Looking at the iOS implementation of XMLHTTPRequest I found the following code:
Applying the same constructor to the Android implementation resolves the issue.