silverstripe/silverstripe-framework — pull request #3341 by halkyon (2014-07-28 23:34:07+00:00)
Title: BUG Fixing incorrect error message on failed UploadField upload

If applying custom Upload_Validator rules, uploads will fail POST with
a 403 to UploadField/upload as the upload was rejected, but UploadField
still shows that the upload was successful.

jqXHRorError returns either an error string, e.g. "Forbidden" or an
object. If it's a string, ensure that the upload summary shows an
error message. If it's an object and has a status of 200, show the
success message.