$directory = "../photos";
$countfile = count($_FILES['photo']['name']);
$extension = array ("image/jpeg","image/pjpeg","image/png","image/gif");
foreach($_FILES["photo"]["error"] as $upload => $error)
{
if($error == UPLOAD_ERR_OK)
{
$filename = $_FILES['photo']['name'][$upload];
if(in_array($_FILES['photo']['type'][$upload], $extension))
{
$file = $directory . "/".permaImage($filename);
move_uploaded_file($_FILES['photo']['tmp_name'][$upload], $file);
}
$photo = permaImage($_FILES['photo']['name'][$upload]);
}
}




Yaptığım bir çalışmadan örnek, kolay gelsin.