I am having difficulty making multiple uploados, in the move_uploaded_file command it is sending only one.
foreach ($imagem['name'] as $key => $fotos) {
if (isset($tipoAlbum)) {
$dados->setAlbum($tipoAlbum);
if (!file_exists($tipoAlbum)) {
@mkdir("album/" . $dados->getAlbum());
echo $imagem['tmp_name'][$key];
echo $fotos;
$t = $imagem['tmp_name'][$key];
move_uploaded_file($t, "album/" . $dados->getAlbum() . "/" . $dados->getImagem());
}
}
}
Can anyone give me a hint?