|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-15 08:55 UTC] jani@php.net
[2010-01-15 10:15 UTC] anzenews at volja dot net
[2010-01-15 16:03 UTC] rasmus@php.net
[2010-08-03 20:32 UTC] phazei at gmail dot com
[2010-10-05 15:23 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Description: ------------ Setting max_file_uploads limits the number of file input fields on HTML page instead of limiting the number of actually uploaded files. Reproduce code: --------------- <form name="formData" action="" enctype="multipart/form-data" method="post"> <?php for ($i=0;$i<30;$i++) { echo "File ".($i+1).":<br />\n". '<input name="file_'.$i.'" type="file" /><br />'."\n"; }; ?> <input value="OK!" type="submit" /> </form> <pre> <?php var_dump($_FILES) ;?> </pre> Expected result: ---------------- When you upload a single file (in the LAST!!! input box) and hit "OK!", you should see the uploaded file. Actual result: -------------- Instead you see just 20 empty file uploads. (if max_file_uploads is set to 20, as per default) The max_file_uploads setting should never count empty files.