HTTP directives
client_body_in_file_only directive (HTTP)
Force request bodies into files for a controlled integration lab; clean removes temporary files after request processing. Never retain real uploads casually. Context: http, server, location. Documented default: off. Version: Introduction not established. OSS documentation; check target build. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.
Formal Syntax & Structure
nginx syntaxnginx
client_body_in_file_only on | clean | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| mode | on | clean | off | On retains files, clean requests cleanup, off disables forced file storage. |
Working Example
Example Snippetnginx
client_body_in_file_only clean;