note 55279 deleted from features.file-upload.multiple by salathe

From: Date: Fri, 03 Jan 2014 18:50:54 +0000
Subject: note 55279 deleted from features.file-upload.multiple by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198100@lists.php.net to get a copy of this message
Note Submitter: ---- 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.

« previous php.notes (#198100) next »