-3
How do I change the file name when uploading?
I would just like to add in the shipping of the file name the date('dmY')
.
if(!empty($_FILES['uploaded_file'])) {
$path = "./uploads/arquivos/";
$path = $path . basename( $_FILES['arquivo']['name']);
if(move_uploaded_file($_FILES['arquivo']['tmp_name'], $path)) {
echo "Enviado";
} else{
echo "Erro";
}
}