Handling HTTP 413 Errors
What is the recommended way to handle 413 (Entity too large) HTTP errors?
It seems the HTML5 and flash runtimes do not handle non-200 statuses very well, if at all. In addition to this, the HTML5 runtime doesn't seem to often handle the filters correctly, leading to the user waiting for a huge upload just to be told it failed.
For example, receiving a 413 error in the Error event results in this:
{
code: -200,
file: {/* omitted */},
message: "HTTP Error.",
response: "",
responseHeaders: "",
status: 0
}
Meaning, essentially, there is no way to know what kind of error was received? I don't particularly care for the response body but a status code would be nice at least. Is this not possible?
Mechanical omission :( HTML5 runtime was meant to have the ability to properly report HTTP statuses. I've updated nightly build now. Thanks for reporting this.