valums/file-uploader — pull request #316 by NebuPookins (2012-09-07 17:28:38+00:00)
Title: file-uploader now tries to parse server response as JSON even if HTTP status code is not 200

In our project, we needed to have the server return structured error data as JSON for further processing on the client side, but the original version of file-uploader only tries to parse the server response if the status code was 200.

This change now makes file-uploader attempt to parse the server-response regardless of the status code, falling back to the empty response object if the parse was unsuccessful (which is what it did previously in the case of an unparsable HTTP 200 response).