public function uploadFileFromFilesystem(File $file, string $path)
    {
        $dir = sys_get_temp_dir();

        $filename = $dir.'/'.Uuid::uuid4()->toString().'.'.$this->guessExtension($path);

        rename($path, $filename);

        $file->path = $filename;
        $file->save();

        $file->addMedia($file->path)->toMediaCollection('default');

        $result = new Result();
        $result->setResources(Collection::make([$file]));

        return $result;
    }