prova così
Codice PHP://...
$bnfile = basename( $_FILES['uploadedfile']['name']);
$target_path= $target_path . $bnfile;
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "Il file ".$bnfile." è stato caricato";
} else{
echo "C'è stato un errore nell'upload del file, riprova!";
} ?>

Rispondi quotando