Laravel Community Tools by Tighten
Back to Recipes

Fix NGINX 413 Request Entity Too Large (cannot upload larger files)

picoprime un-tested

If you cannot upload larger files via your website, it might be because your Nginx config is missing client_max_body_size.

This recipe will go through your all websites on the server and add a line "client_max_body_size 100M" to configs that are valid websites, ie. contain a line # FORGE SSL. Limit is set to 100MB.

Run it as ROOT.

bash

Comments

No comments yet.

Log in to leave a comment.