note 21510 added to features.file-upload.multiple

From: Date: Wed, 15 May 2002 14:32:14 +0000
Subject: note 21510 added to features.file-upload.multiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-30674@lists.php.net to get a copy of this message
When you do a multiple file <form> upload via POST method, the most logical choice is to use the PHP array: <form method="post" enctype="multipart/form-data" action="something.php"> <input type="file" name="uploads[first]"> <input type="file" name="uploads[second]"> . . . <input type="submit"> </form> You would get a few arrays if you had your register globals turned on: $uploads - an array of the tmp filenames & paths $uploads_name - an array of the name given by the browser $uploads_size - an array of the sizes $uploads_type - an array of the MIME types of the file uploaded So, if I looked at the content of $uploads_name["first"] in 'something.php' (in this case), it will give me the browser assigned name for the first file <input>. Next, you should look at how PHP limits file sizes in php.ini! Have fun! -Ken -- http://www.php.net/manual/en/features.file-upload.multiple.php http://master.php.net/manage/user-notes.php?action=edit+21510 http://master.php.net/manage/user-notes.php?action=delete+21510 http://master.php.net/manage/user-notes.php?action=reject+21510

« previous php.notes (#30674) next »