From 754e7a6b4b2c12cf50c1c8b166732dc3255f36fb Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Sun, 6 Aug 2023 13:49:06 +0000 Subject: [PATCH] fix(media): get path using media_path_absolute when saving media file --- modules/Media/FileManagers/FS.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/Media/FileManagers/FS.php b/modules/Media/FileManagers/FS.php index 7abcf488..ca31bc23 100644 --- a/modules/Media/FileManagers/FS.php +++ b/modules/Media/FileManagers/FS.php @@ -24,8 +24,7 @@ class FS implements FileManagerInterface { helper('media'); - $mediaRoot = $this->media_path_absolute(); - $path = $mediaRoot . '/' . $key; + $path = $this->media_path_absolute($key); if (! file_exists(dirname($path))) { mkdir(dirname($path), 0777, true);