© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
muhdnorfirdaus

Uploaded files/image does not show when in edit page

All other data succesfully fetched except the files in FIleUpload

ComplainResource
                Wizard\Step::make('Fault')
                    ->schema([
                        Select::make('title')
                            ->label('Disciplinary Action')
                            ->options([
                                'merokok' => 'Merokok',
                                'berjudi' => 'Berjudi'
                            ])
                            ->required(),
                        TextInput::make('description')
                            ->label('Details')
                            ->maxLength(255)
                            ->required(),
                        DateTimePicker::make('incident_date'),
                        FileUpload::make('file_path')
                        ->disk('public')
                        ->directory('complain')
                        ->visibility('public')
                        ->multiple()
                        ->storeFileNamesIn('original_file_name')
                        ->default(fn ($record) => $record?->complainFiles->pluck('file_path')->map(function ($path) {
                            return asset('storage/complain/' . basename($path));
                        })->toArray()),
                    ]),
                Wizard\Step::make('Fault')
                    ->schema([
                        Select::make('title')
                            ->label('Disciplinary Action')
                            ->options([
                                'merokok' => 'Merokok',
                                'berjudi' => 'Berjudi'
                            ])
                            ->required(),
                        TextInput::make('description')
                            ->label('Details')
                            ->maxLength(255)
                            ->required(),
                        DateTimePicker::make('incident_date'),
                        FileUpload::make('file_path')
                        ->disk('public')
                        ->directory('complain')
                        ->visibility('public')
                        ->multiple()
                        ->storeFileNamesIn('original_file_name')
                        ->default(fn ($record) => $record?->complainFiles->pluck('file_path')->map(function ($path) {
                            return asset('storage/complain/' . basename($path));
                        })->toArray()),
                    ]),


I've checked on the console but there is no error
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edit Does not show the user image
FilamentFFilament / ❓┊help
2y ago
Show non image files uploaded via spatie-medialibrary
FilamentFFilament / ❓┊help
3y ago
Image not show in view and edit form
FilamentFFilament / ❓┊help
2y ago