moxiecode/plupload — Issue #424: Pass server errors to client
Author: nriley
Created: 2011-11-17 23:07:09+00:00
State: open

I'm accepting PDF uploads and am parsing/storing the PDF as part of the upload process. When the PDF is invalid or contains unsupported features, I return a non-200 response. In Plupload, this is indistinguishable, and even misleading, from the client's perspective from a network error (e.g. "IO Error"/"The remote server returned an error: NotFound" from the Silverlight backend when I'm actually returning a response explaining why their file is invalid.)

So I'd like for there to be some way for the server to indicate to the user why their upload failed. A simple text/plain response, or even using the HTTP status description would be adequate for my purposes.