nginx config_error ai_generated true

413 Request Entity Too Large

ID: nginx/client-body-too-large

Also available as: JSON · Markdown
90%Fix Rate
92%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1 active

Root Cause

Upload exceeds client_max_body_size.

generic

Workarounds

  1. 92% success Set client_max_body_size per location for upload endpoints
    location /upload { client_max_body_size 100m; }
  2. 85% success Implement chunked upload on application side

Dead Ends

Common approaches that don't work:

  1. Set client_max_body_size to 0 (unlimited) 82% fail

    DoS vector with huge uploads

  2. Increase only in http block 65% fail

    Applies to all locations unnecessarily