Fix issue where xhr.upload is undefined on Android#6986
Fix issue where xhr.upload is undefined on Android#6986ryanlntn wants to merge 1 commit intofacebook:masterfrom
Conversation
|
@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? |
|
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 |
|
Ok, I cleaned up my patched and submitted it as a PR: #7017. |
|
@philikon would you mind taking a look at this pull request? It's been a while since the last commit was reviewed. |
|
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.