fix(media): get path using media_path_absolute when saving media file

This commit is contained in:
Yassine Doghri 2023-08-06 13:49:06 +00:00
parent 9346e787bd
commit 754e7a6b4b
1 changed files with 1 additions and 2 deletions

View File

@ -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);