planka icon indicating copy to clipboard operation
planka copied to clipboard

413 error (Request Entity Too Large)

Open jnijland opened this issue 2 years ago • 3 comments

When uploading a file (just 1mb) via a Planka installation using docker, I get a 413 (Request Entity Too Large) error. I cannot upload any files. Is this a bug or a misconfiguration on my side?

jnijland avatar Sep 25 '22 20:09 jnijland

Hi! I've tested it and I have no problems with uploading 🤔 This could be a bug, but I need more information about your configuration. Are you using a proxy server?

meltyshev avatar Sep 26 '22 09:09 meltyshev

When uploading a file (just 1mb) via a Planka installation using docker, I get a 413 (Request Entity Too Large) error. I cannot upload any files. Is this a bug or a misconfiguration on my side?

If you are using nginx or something, you may need to set this up in the nginx config for this site. I just had this error but I fixed it by simply increasing the limit.

DearFox avatar May 10 '23 19:05 DearFox

I had the same issue. As confirmed by @meltyshev and @DearFox, in my case it was related to the nginx reverse proxy.

I followed the steps on this StackOverflow question and updated my app.conf to allow for larger individual uploads to Planka:

server {
...
    location /planka/ {
        ...
        client_max_body_size 10M;
    }
}

There's an opportunity here for Planka to capture and respond to this kind of error. I've raised this in #711.

TassSinclair avatar Apr 14 '24 09:04 TassSinclair