Kudose wrote:Isn't it supposed to be something like:
No, that's the format described in the manual.... it's for consistency (since the format has to be the same if there is only one file and not an array).
$indexes=array_keys($_FILES['name']);
$new_FILES = array();
foreach($indexes as $index)
{
$new_FILES[$index] = array('name'=>$_FILES['name'][$index], 'type'=>$_FILES['type'][$index] ... etc);
}
And if you want those re-indexed: $new_FILES = array_values($new_FILES);