Skip to content

Error dont stop upload #11

Closed
Closed
@oleg-demidov

Description

@oleg-demidov

var nesseserySettings = {
processData : false,
type: 'POST',
beforeSend : function(xhr, s) {
s.xhr = function () {
var xhr = new window.XMLHttpRequest();
xhr.upload.onprogress = s.onprogress.bind(this);
xhr.upload.onabort = s.onabort.bind(this);
xhr.upload.onerror = s.onerror.bind(this);
xhr.upload.onload = s.onload.bind(this);
return xhr;
};
s.data = fd;
if (origSettings.beforeSend) {
return origSettings.beforeSend.call(this, xhr, s); ///// <<<<< i fix there
}
}
};

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