Skip to content
Permalink
Browse files

Better plupload debugging for HTTP errors

  • Loading branch information...
chrisgraham committed May 31, 2019
1 parent 1b57f87 commit 0d07029439e32e048e645fa46907bbacba649cdc
Showing with 4 additions and 1 deletion.
  1. +4 −1 themes/default/javascript/plupload.js
@@ -12083,12 +12083,15 @@ plupload.Uploader = function(options) {

up.trigger('Error', {
code : plupload.HTTP_ERROR,
message : (contentType == 'text/plain') ? xhr.responseText : plupload.translate('HTTP Error.'),
message : (contentType == 'text/plain') ? xhr.responseText : (plupload.translate('HTTP Error.') + ' #' + xhr.status), // Altered by ChrisG
file : file,
response : xhr.responseText,
status : xhr.status,
responseHeaders: xhr.getAllResponseHeaders()
});
if (typeof window.console != 'undefined') { // Added by ChrisG
console.log(xhr.responseText);
}
}
}

0 comments on commit 0d07029

Please sign in to comment.
You can’t perform that action at this time.