$sourcePath = $_FILES['file']['tmp_name'];
$targetPath = "upload/".$_FILES['file']['name'];
move_uploaded_file($sourcePath,$targetPath);
Des idées ? Merci d'avance !Résolu :
$sourcePath = $_FILES['file']['tmp_name'];
$extension = end(explode(".", $_FILES["file"]["name"]));
$targetPath = "upload/".uniqid().".".$extension."";
move_uploaded_file($sourcePath,$targetPath);