diff --git a/controllers/front/UploadController.php b/controllers/front/UploadController.php index 2a79270c7333f..9caac14d07c8a 100644 --- a/controllers/front/UploadController.php +++ b/controllers/front/UploadController.php @@ -75,6 +75,6 @@ public function postProcess() private function getPath(): string { - return _PS_UPLOAD_DIR_ . $this->filename; + return _PS_UPLOAD_DIR_ . basename($this->filename); } }