I have a simple HTML form that has 5 of the following inputs:
<input type="file" name="multi[]" />
I post this to my script for processing and the array becomes this:
$_FILES['multi']['attribute'][0]
Where ['attribute'] are the typical values associated with a file upload and [0] indicates the file in the array. So with 5 upload files this would go from [0] - [4]
I'm looking for guidance to achieve the following:
- Echo the name, type, and filesize of each file in the array to the screen
- use exec() to move these files to a specified directory
I know I need to use foreach() but I haven't used it often in my programs so any help is greatly appreciated.
Thanks in advance!