note 6278 deleted from features.file-upload.multiple by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 20:38:48 +0000 |
| Subject: | note 6278 deleted from features.file-upload.multiple by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25397@lists.php.net to get a copy of this message | ||
Funny, everyone seems to have problems with array uploading in php4... I have had no difficulties at
all with it... It could be that I enumerate all the file inputs like:<br><br>
<input type="file" name="uploadedfile[1]">
<input type="file" name="uploadedfile[2]">
><br><br>
Then I just step through the array using <br><br>
<pre>while(list($key, $value) = each($uploadedfile)) {
copy($uploadedfile[$key], "/directory/" . $uploadedfile_name($key));
unlink($uploadedfile[$key]);
}</pre><br><br>
Seems to work well for me.