mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(media): get path using media_path_absolute when saving media file
This commit is contained in:
parent
9346e787bd
commit
754e7a6b4b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user