Normalize $_FILES array when uploading multiple files When uploading multiple files, the $_FILES variable is created in the form: Array ( [name] => Array ( [0] => foo.txt