diff --git a/modules/system/models/File.php b/modules/system/models/File.php index 7fe8f0d34..fb501bba1 100644 --- a/modules/system/models/File.php +++ b/modules/system/models/File.php @@ -17,14 +17,18 @@ class File extends FileBase */ protected $table = 'system_files'; - // - // Configuration - // + /** + * If working with local storage, determine the absolute local path. + */ + protected function getLocalRootPath() + { + return Config::get('filesystems.disks.local.root', storage_path().'/app'); + } /** * Define the public address for the storage path. */ - public function getPublicDirectory() + public function getPublicPath() { $uploadsPath = Config::get('cms.uploadsPath', '/storage/app/uploads');