svn: /phpdoc/en/trunk/features/ file-upload.xml

From: Date: Wed, 15 Sep 2010 04:08:06 +0000
Subject: svn: /phpdoc/en/trunk/features/ file-upload.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7109@lists.php.net to get a copy of this message
aharvey Wed, 15 Sep 2010 04:08:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=303378 Log: Fix doc bug #52846 (max_file_uploads is not mentioned in the documentation). Bug: http://bugs.php.net/52846 (Assigned) max_file_uploads is not mentioned in the documentation Changed paths: U phpdoc/en/trunk/features/file-upload.xml Modified: phpdoc/en/trunk/features/file-upload.xml =================================================================== --- phpdoc/en/trunk/features/file-upload.xml 2010-09-15 03:55:24 UTC (rev 303377) +++ phpdoc/en/trunk/features/file-upload.xml 2010-09-15 04:08:06 UTC (rev 303378) @@ -386,6 +386,17 @@ <literal>post_max_size</literal> large enough. </simpara> <simpara> + Since PHP 5.2.12, the + <link linkend="ini.max-file-uploads">max_file_uploads</link> configuration + setting controls the maximum number of files that can uploaded in one + request. If more files are uploaded than the limit, then + <varname>$_FILES</varname> will stop processing files once the limit is + reached. For example, if + <link linkend="ini.max-file-uploads">max_file_uploads</link> is set to + <literal>10</literal>, then <varname>$_FILES</varname> will never contain + more than 10 items. + </simpara> + <simpara> Not validating which file you operate on may mean that users can access sensitive information in other directories. </simpara> @@ -462,6 +473,15 @@ <varname>$_FILES['userfile']['type'][0]</varname> are also set. </simpara> + <warning> + <simpara> + Since PHP 5.2.12, the + <link linkend="ini.max-file-uploads">max_file_uploads</link> + configuration setting acts as a limit on the number of files that can be + uploaded in one request. You will need to ensure that your form does not + try to upload more files in one request than this limit. + </simpara> + </warning> </sect1> <sect1 xml:id="features.file-upload.put-method">

« previous php.doc.cvs (#7109) next »