Uploads above ~1MB fail with 413.
client_max_body_size defaults to 1m.
location /upload { client_max_body_size 50m; }# 0 disables the check entirelynginx -t && nginx -s reloadMatch the limit to what your app actually accepts.
Spinning up a fresh box to reproduce or escape this error?
Managed cloud hostingNinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog