Directive reference
client_max_body_size
Limits the size of a client request body.
| Syntax | client_max_body_size size; |
|---|---|
| Contexts | httpserverlocation |
| Default | client_max_body_size 1m; |
Behavior
A declared body over the limit is rejected with 413 without waiting for the body to arrive. Zero disables the size check.
Example
client_max_body_size 20m;