diff --git a/src/plugins/XHRUpload.js b/src/plugins/XHRUpload.js index 2d8a79847..d6a63e24b 100644 --- a/src/plugins/XHRUpload.js +++ b/src/plugins/XHRUpload.js @@ -235,7 +235,7 @@ module.exports = class XHRUpload extends Plugin { return resolve(file) } else { - const body = opts.getResponseData(xhr) + const body = opts.getResponseData(xhr.responseText, xhr) const error = buildResponseError(xhr, opts.getResponseError(xhr.responseText, xhr)) const response = {