$_FILES is an associative array where the keys are the name attribute of the files <input> element
$_FILES
name
<input>
So in order to access the 2 files do the following
$file1 = $_FILES['file']['name']; $file2 = $_FILES['file2']['name'];