I am unsure where to find the error (attached the screenshots below).
So Upon trying to upload large files through a Droplet, Ubuntu, Nginx, Nodejs I am hitting a
413 Request Entity Too Large error.
Connection: keep-alive Content-Length: 67 Content-Type: text/html Date: Mon, 29 May 2023 21:27:18 GMT Server: nginx/1.22.0 (Ubuntu) X-Powered-By: Express
In the response headers I get :
Server: nginx/1.22.0 (Ubuntu) X-Powered-By: Express
which tells me (I think) it’s coming from Nginx config (image/link below). In the
/etc/nginx/nginx.conf I have within the
client_max_body_size 200M however i’m still getting this 413 error.
So I’m unsure, is the error coming from Nginx and the
client_max_body_size is not being picked up/listened too OR is there a limit on a single upload request and DigitalOcean is hitting some limit, I’m unsure how to have a definite answer, since I can assume it’s nginx but with the config looking correct I am unsure if it’s still nginx or DO.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.