zer0tonin / Mikochi

A minimalist file-manager with streaming capabilities
MIT License
224 stars 12 forks source link

413 Content Too Large is silent in Mikochi #14

Closed Elesh-Norn closed 2 months ago

Elesh-Norn commented 3 months ago

If your server is not configured to handle large files, it will refuse to upload and throw you a 413 error.

However, Mikochi doesn't parse this error and just hang on. It would be nice to have a popup saying that the request failed, with or without the reason.

zer0tonin commented 3 months ago

The solution for this kind of bugs would be to fallback to a pre-defined map for error codes -> error message, in case the error response cannot be parsed as json or the "err" key is not set

zer0tonin commented 2 months ago

Fixed in 1.6.0