This commit is contained in:
philipp lang 2024-01-02 01:27:56 +01:00
parent 9c33c8f128
commit 7e8f762885
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class MediaController
$medias = collect($content)->map(function ($c) use ($collection, $model) {
$pathinfo = pathinfo($c['name']);
$basename = $collection->runCallback('forceFileName', $model, $pathinfo['filename']);
$path = $basename.'.'.$pathinfo['extension'];
$path = $basename . '.' . $pathinfo['extension'];
$adder = $this->fileAdderFromData($model, $c['content'], $collection)
->usingName($basename)