Forum Moderators: coopster
I`m trying to re-write this uploader script that I have so that visitors can upload multiple files. I seem to be having some problems. I have created a form, which uses a while loop to show however many upload fields are specified in a config file.
For each field I am using:
<input type="hidden" name="MAX_FILE_SIZE" value="$max_file">
<input type="file" size="30" name="userfile[]">
$max_file is set to "100000"
Can someone tell me the syntax for uploading all the files, checking that each one is within the specified file size? I`m assuming its a foreach loop, but I`ve looked on some of the other PHP sites and can`t seem to get my head round it.
Thanks for the help.
:)
that is exactly what it does
:)