Merge pull request #656 from rhymes/patch-1

Fix XHRUpload.js error handling
This commit is contained in:
Renée Kooi 2018-02-22 15:10:29 +01:00 committed by GitHub
commit f727197a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {