Skip to content

(new XMLHttpRequest()).upload is undefined on wp8 #74

@Franjanko

Description

@Franjanko

Hi,

I'm using hello.js on a phonegap app and on windows phone the property (new XMLHttpRequest()).upload is undefined. We amended the code on hello.js line 1931 checking for the presence of the object before to append the onprogress listener, like this:

            if(x.upload) {
                x.upload.onprogress = function(e){
                    self.emit("uploadprogress", e);
                };
            }

small fix and everything seems to be working fine now.

Thanks for this awesome library ;)

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions