diff --git a/src/Fields/File.php b/src/Fields/File.php index 1e3f80c2..8ea014ae 100644 --- a/src/Fields/File.php +++ b/src/Fields/File.php @@ -239,6 +239,8 @@ public function toOption(Request $request, Model $model, Model $related): array $option['attrs']->merge(['name' => $name]); + /** @var \Cone\Root\Models\Medium $related */ + return array_merge($option, [ 'fileName' => $related->file_name, 'isImage' => $related->isImage,