© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
22 replies
Jamie Cee

FileUpload Not storing to DB

I've setup a file upload called 'avatar', the image seems to upload fine as inside my docker container, inside my path in storage/ I can view (although it saves as a .webp extension instead of the .jpg I uploaded?

But the url should store into my DB correct? It wont save and not sure what im missing.

                        Forms\Components\FileUpload::make('avatar')
                            ->image()
                            ->disk('local')
                            ->directory('offers'),
                        Forms\Components\FileUpload::make('avatar')
                            ->image()
                            ->disk('local')
                            ->directory('offers'),
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

Fileupload not saving to DB
FilamentFFilament / ❓┊help
3y ago
fileupload not working
FilamentFFilament / ❓┊help
2y ago
How to ignore a form field from storing in DB
FilamentFFilament / ❓┊help
2y ago