diff --git a/gestion/lib/Controller/PageController.php b/gestion/lib/Controller/PageController.php index 4865eca..f9fadfd 100644 --- a/gestion/lib/Controller/PageController.php +++ b/gestion/lib/Controller/PageController.php @@ -2787,7 +2787,7 @@ class PageController extends Controller { } $photoName = basename($_FILES["photo"]["name"]); $filename = uniqid() . "_" .$photoName; - $fullPath = $folder.$photoName; + $fullPath = $folder.$filename; $fileContent = file_get_contents($_FILES["photo"]["tmp_name"]); $this->storage->newFile($fullPath,$fileContent); $this->adminStorage->newFile($fullPath,$fileContent); @@ -2819,7 +2819,7 @@ class PageController extends Controller { } $photoName = basename($_FILES["photo"]["name"]); $filename = uniqid() . "_" .$photoName; - $fullPath = $folder.$photoName; + $fullPath = $folder.$filename; $fileContent = file_get_contents($_FILES["photo"]["tmp_name"]); $this->storage->newFile($fullPath,$fileContent); $this->adminStorage->newFile($fullPath,$fileContent);