Nginx and “413 Entity too large.”


2014-01-11

That's what she said! Okay, okay, here's how to fix an "entity too large" error with nginx. Add this to your server block:

client_max_body_size 10M;

where 10M is the size of uploads you want to allow. The default is 2 MB, but as you know people have smartphones that take larger pictures than that now. Just remember you should probably resize them for web display until we all have better download speeds.