diff --git a/app/Models/Media.php b/app/Models/Media.php index 9853968..209ead9 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -818,7 +818,7 @@ class Media extends Model $fileSystem->putFileAs('/', new SplFileInfo($tempImagePath), $newFilename); unlink($tempImagePath); - $this->thumbnail = $this->getUrlPath(['name', $newFilename]); + $this->thumbnail = $this->getUrlPath(['name' => $newFilename]); } else { $iconExtension = 'unknown'; if ($fileExtension !== '') {