Why is _REQUEST["MAX_FILE_SIZE"] set to 2097152?
<p>I have been following this very simple PHP upload script:</p>

<p><a href="http://www.commentcamarche.net/faq/889-php-upload-de-fichiers" rel="nofollow">http://www.commentcamarche.net/faq/889-php-upload-de-fichiers</a></p>

<p>I did check that:</p>

<pre><code>$ cat /etc/php5/apache2/php.ini | grep upload_max_filesize
upload_max_filesize = 2047M
</code></pre>

<p>and</p>

<pre><code>$ cat /etc/php5/apache2/php.ini | grep post_max_size
post_max_size = 2146445312 ; 2047M + 10K
</code></pre>

<p>However nomatter what I set in my form the hard limit is always (using phpinfo() to display info):</p>

<pre><code>           Core
  PHP Version   5.3.3-7+squeeze14 
  post_max_size 2146445312  2146445312
  upload_max_filesize   2047M   2047M

           PHP Variables
  _REQUEST["MAX_FILE_SIZE"] 2097152
  _POST["MAX_FILE_SIZE"]    2097152
</code></pre>

<p>Where is this limit possible coming from ? All I need is a simple HTML form to send data, since my customer is not capable of my anonymous ftp upload.</p>

<p>For completeness here is what I use:</p>

<pre><code>$ cat input.html
&lt;form method="post" action="upload.php" enctype="multipart/form-data"&gt;
          &lt;input type="hidden" name="MAX_FILE_SIZE" value="2012345"&gt;
          &lt;input type="file" name="nom_du_fichier"&gt;    
          &lt;input type="submit" value="Envoyer"&gt;    
&lt;/form&gt;
</code></pre>

<p>I even tried removing the field MAX_FILE_SIZE, it never change. I used the magic value 2012345 in the hope to see it appear in the output of phpinfo() but again with no luck so far...</p>

<p>Thanks !</p>
