© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Wannes

File Upload

Hi, my file upload is not working as expected. It's always using the local disk, while I specifically tell it to use public. It always saves files under
app/storage/livewire-tmp
app/storage/livewire-tmp


Also, in the database I just get this back:
{"86debad5-ef3a-4570-99e7-8be320a4e9b4":{}}
{"86debad5-ef3a-4570-99e7-8be320a4e9b4":{}}


Which is not good enough to re-retrieve the file and display it on the view form...

Is anyone familar with file upload and storing the path (or something else) to the database, and have it permanently?

I've also done php artisan storage:link
FileUpload::make('logo')
                        ->label('Logo')
                        ->acceptedFileTypes(['image/png', 'image/jpg', 'image/jpeg'])
                        ->downloadable()
                        ->maxSize(32000)
                        ->disk('public')
                        ->maxFiles(1)
                        ->preserveFilenames()
                        ->image()
                        ->imageEditor()
                        ->imageEditorAspectRatios([
                            '16:9',
                            '4:3',
                            '1:1',
                        ]),
FileUpload::make('logo')
                        ->label('Logo')
                        ->acceptedFileTypes(['image/png', 'image/jpg', 'image/jpeg'])
                        ->downloadable()
                        ->maxSize(32000)
                        ->disk('public')
                        ->maxFiles(1)
                        ->preserveFilenames()
                        ->image()
                        ->imageEditor()
                        ->imageEditorAspectRatios([
                            '16:9',
                            '4:3',
                            '1:1',
                        ]),
`
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

upload file
FilamentFFilament / ❓┊help
2y ago
File Upload
FilamentFFilament / ❓┊help
2y ago
File Upload
FilamentFFilament / ❓┊help
3y ago
File-Upload
FilamentFFilament / ❓┊help
3y ago