look at the file upload.php
$target_dir = "../../mp3/";
$nomeF="Sebastião"; <- aqui eu pego no banco de dados o nome...
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$target_file2=utf8_encode($target_dir).$nomeF.utf8_encode(".mp3"); <- tentei codificar o arquivo mas nao deu resultado
ou
$target_file2=$target_dir.$nomeF.".mp3";
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
if ($_FILES["fileToUpload"]["size"] > 59900000) {
$uploadOk = 0;
}
// Allow certain file formats
if($imageFileType != "mp3" ) {
$uploadOk = 0;
}
// Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) {
} else {
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file2)) {
} else {
}
}
However, as I said, the file saved wrong. Does anyone know what to do?