Commit 2ff8ce08 authored by Okthane's avatar Okthane

m

parent 3b3610dc
......@@ -35,12 +35,12 @@ if($_SERVER["REQUEST_METHOD"] == "POST")
{
//echo $_FILES["photo"]["name"] . " existe déjà.";
$error = false;
// move_uploaded_file($_FILES["photo"]["tmp_name"], PATH_TO_ID."/".$filename);
move_uploaded_file($_FILES["photo"]["tmp_name"], PATH_TO_ID."/".$filename);
$message = $_FILES["photo"]["name"] . " existe déjà.";
}
else
{
// move_uploaded_file($_FILES["photo"]["tmp_name"], PATH_TO_ID."/".$filename);
move_uploaded_file($_FILES["photo"]["tmp_name"], PATH_TO_ID."/".$filename);
// echo "Votre fichier a été téléchargé avec succès.";
// echo("<br></br>");
// echo "taille de la photo : ".$_FILES["photo"]["size"]." octets";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment