Commit 3b3610dc authored by Okthane's avatar Okthane

m

parent 68ba83ed
......@@ -10,7 +10,7 @@ const timeout = 5000;
const ID = "img-ID";
const canva = "canvas";
console.log($("#"+ID).attr('src'));
// console.log($("#"+ID).attr('src'));
const idConsole = "div";var Console;
......@@ -166,7 +166,7 @@ function sendMail(){
async function findFaces(idImage) {
btnCustomFileUpload.prop('disabled',true);
// btnCustomFileUpload.prop('disabled',true);
btnSubmit.prop('disabled',true);
console.log('_findFaces()');
const model = await blazeface.load();
......
......@@ -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