Commit d932ee42 authored by Okthane's avatar Okthane

update

parent 68d75900
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</ul> </ul>
</div> </div>
<div class="col-md-3 my-auto d-flex justify-content-center"> <div class="col-md-3 my-auto d-flex justify-content-center">
<img name ="im_ID2" id="img-ID2" src="" height="150em"/> <img name ="im_ID2" id="img-ID2" src="" height="150em"/>
</div> </div>
<div id="div-filename"></div> <div id="div-filename"></div>
</div> </div>
......
...@@ -11,7 +11,7 @@ require_once "vendor/autoload.php"; ...@@ -11,7 +11,7 @@ require_once "vendor/autoload.php";
if($_SERVER["REQUEST_METHOD"] == "POST") if($_SERVER["REQUEST_METHOD"] == "POST")
{ {
if(isset($_FILES["photo"]) && $_FILES["photo"]["error"] == 0) if(isset($_FILES["photo"]) && $_FILES["photo"]["error"] == 0 )
{ {
$allowed = array( $allowed = array(
"jpg" => "image/jpeg", "jpg" => "image/jpeg",
......
...@@ -219,7 +219,7 @@ async function photoDetourage(formData){ ...@@ -219,7 +219,7 @@ async function photoDetourage(formData){
url: URL_DETOURAGE, url: URL_DETOURAGE,
method: 'POST', method: 'POST',
enctype: 'multipart/form-data', enctype: 'multipart/form-data' ,
data: formData, data: formData,
......
<?php <?php
//dossier temporaitre pour les images //dossier temporaitre pour les images
define('PATH_TO_TEMP', "temp"); define('PATH_TO_TEMP', "temp");
// Vérifier si le formulaire a été soumis // Vérifier si le formulaire a été soumis
if($_SERVER["REQUEST_METHOD"] == "POST") if($_SERVER["REQUEST_METHOD"] == "POST")
......
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