note 55279 added to features.file-upload.multiple

From: Date: Fri, 29 Jul 2005 02:50:02 +0000
Subject: note 55279 added to features.file-upload.multiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-92684@lists.php.net to get a copy of this message
re: phpuser's comment I found that if instead of the form structure at the top of the page use one like this: <form action="file-upload.php" method="post" enctype="multipart/form-data"> Send these files:<br /> <input name="userfile1" type="file" /><br /> <input name="userfile2" type="file" /><br /> <input type="submit" value="Send files" /> </form> Notice the names are unique and not an array element. Now the array is structured more like phpuser would like. I did this and used... foreach ($_FILES as $file) { ... } without issue. ---- Submitter IP: 66.207.199.35 ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.multiple.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55279 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55279&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55279&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55279&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55279&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55279&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55279&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55279&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92684) next »