Skip to content

Commit

Permalink
fix filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Sep 18, 2024
1 parent c6cf71f commit 316410e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/front/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ public function postProcess()

private function getPath(): string
{
return _PS_UPLOAD_DIR_ . $this->filename;
return _PS_UPLOAD_DIR_ . basename($this->filename);
}
}

0 comments on commit 316410e

Please sign in to comment.