Help. How I can show in Forms\Components\FileUpload::make('image') field filed from other field

I use this code - but i cant show preview Forms\Components\FileUpload::make('image') ->label('Зображення') ->image() ->directory('temp') ->disk('public') ->preserveFilenames() ->required(fn () => request()->routeIs('filament.admin.resources.services.create')) ->default(fn ($record) => $record?->image_paths['original'] ?? null) ->downloadable() ->openable() , But in columns list i can show it as
->columns([ Tables\Columns\ImageColumn::make('image_paths.thumbnail') ->label('Зображення') ->circular() ->height(100), Who can help me with this?
2 Replies
Sergey Yatsyshen
Sergey YatsyshenOP21h ago
Maybe someone have any ideas ?
Dennis Koch
Dennis Koch21h ago
->default() is only used on Create pages You need to use the mutate methods to transform your existing data.

Did you find this page helpful?