Skip to content

Loading…

pass errors in the http response to error handler #603

Closed
wants to merge 1 commit into from

9 participants

@cowboyd

If there are specific validation errors on the
image (file size, dimensions, etc...) then you
need to be able to report those to the user.

@cowboyd cowboyd pass errors in the http response to error handler
If there are specific validation errors on the 
image (file size, dimensions, etc...) then you
need to be able to report those to the user.
22cbf64
@daparky

+1

@afoeder

+1

@webstube

Must be done at all engines (flash, silverlight, etc.), not just html5.

@MichaelDaum

+1. some of the other engines pass a "details" property. this too isn't used everywhere.

@jrreed

+1

@roasm

+1. Yes, please! :)

@jayarjo jayarjo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 7, 2012
  1. @cowboyd

    pass errors in the http response to error handler

    cowboyd committed
    If there are specific validation errors on the 
    image (file size, dimensions, etc...) then you
    need to be able to report those to the user.
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/javascript/plupload.html5.js
View
3 src/javascript/plupload.html5.js
@@ -556,7 +556,8 @@
code : plupload.HTTP_ERROR,
message : plupload.translate('HTTP Error.'),
file : file,
- status : httpStatus
+ status : httpStatus,
+ response: xhr.responseText
});
} else {
// Handle chunk response
Something went wrong with that request. Please try again.