# Client\_body\_in\_file\_only directive

**URL:** <https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393>\
**Category:** NGINX\
**Created:** [October 12, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393 "2010-10-12T17:57:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlangevin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@jlangevin](https://www.ruby-forum.com/u/jlangevin)\
**Post date:** [October 12, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393/1 "2010-10-12T17:57:24Z")

</div>

When viewing the  
[documentation  
for client\_body\_in\_file\_only](http://wiki.nginx.org/NginxHttpCoreModule#client_body_in_file_only), it shows the only possible values as  
on/off.

My confusion occurs when viewing the PHP-FPM  
[suggested  
usage of client\_body\_in\_file\_only](http://php-fpm.org/wiki/Features#Accelerated_upload_support), as it shows the directive with  
a value of clean.

This makes me wonder if there is possibly an undocumented feature of  
Nginx client\_body\_in\_file\_only, to clean/remove the resulting file at  
some point?

Or is PHP-FPM’s documentation just incorrect?

Thanks!

Posted at Nginx Forum:

> **[client\_body\_in\_file\_only directive](https://forum.nginx.org/read.php?2,139759,139759#msg-139759)**
>
> When viewing the \[url=http://wiki.nginx.org/NginxHttpCoreModule#client\_body\_in\_file\_only\]documentation for client\_body\_in\_file\_only\[/url\], it shows the only possible values as \[b\]on/off\[/b\]. My confusion occurs when viewing the PHP-FPM...

---

<div class="post-metadata">

**Author:** ![jlangevin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@jlangevin](https://www.ruby-forum.com/u/jlangevin)\
**Post date:** [October 12, 2010, 6:26pm UTC](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393/2 "2010-10-12T18:26:49Z")

</div>

Hello!

On Tue, Oct 12, 2010 at 11:55:08AM -0400, jlangevin wrote:

> This makes me wonder if there is possibly an undocumented feature of  
> Nginx client\_body\_in\_file\_only, to clean/remove the resulting file at  
> some point?
> 
> Or is PHP-FPM’s documentation just incorrect?

Wiki is just incomplete. The “clean” parameter was introduced in  
0.5.9 (see CHANGES), see Russian docs for description:

> **[Модуль ngx\_http\_core\_module](http://nginx.org/ru/docs/http/ngx_http_core_module.html)**

Maxim D.

---

<div class="post-metadata">

**Author:** ![jlangevin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@jlangevin](https://www.ruby-forum.com/u/jlangevin)\
**Post date:** [October 12, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393/3 "2010-10-12T18:41:15Z")

</div>

Thanks, that’s what I was hoping 🙂

Posted at Nginx Forum:

> **[Re: client\_body\_in\_file\_only directive](https://forum.nginx.org/read.php?2,139759,139772#msg-139772)**
>
> When viewing the \[url=http://wiki.nginx.org/NginxHttpCoreModule#client\_body\_in\_file\_only\]documentation for client\_body\_in\_file\_only\[/url\], it shows the only possible values as \[b\]on/off\[/b\]. My confusion occurs when viewing the PHP-FPM...

---

<div class="post-metadata">

**Author:** ![jlangevin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@jlangevin](https://www.ruby-forum.com/u/jlangevin)\
**Post date:** [October 12, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393/4 "2010-10-12T18:51:17Z")

</div>

I’ll try to get the wiki updated.

There hasn’t been a whole lot of reason to change anything since fpm is  
in core now and 5.2.x hasn’t introduced anything new forever 🙂
