plupload icon indicating copy to clipboard operation
plupload copied to clipboard

Handling HTTP 413 Errors

Open jmzrlz opened this issue 13 years ago • 1 comments

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?

jmzrlz avatar Sep 14 '13 15:09 jmzrlz

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.

jayarjo avatar Sep 15 '13 04:09 jayarjo