I need to upload multiple images via form. I thought that I will do it with no problem, but I have one.
When I try to do foreach and get image by image it is not act
You are basically asking of how to rebuild the $_FILES array to access subitems of them as one array.
$index = 0;
$field = 'fileImage';
$keys = array_keys($_FILES[$field]);
$file = array();
foreach($keys as $key)
{
$file[$key] = $_FILES[$field][$key][$index];
}
print_r($file);
change $index to the value you need to pick a specific file.