© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Kuper

FileUpload default()

Hi

Is it possible to set a default() image in the FileUpload?
The scenario is that I have the ressource "company" where the users uploads a company logo.
Then I have the ressource "loyaltycard" where users can upload a graphic to their loyalty card. By default I want this to be the company logo.

I don't see it mentioned in the docs and I have tried providing the path that it saves in the database just for testing, but it did not work.
Solution
tested this, it's working for me


            FileUpload::make('options')->default('01HGBSG1RJM5NQ611DAJYYJ2Y9.png'),
            FileUpload::make('options')->default('01HGBSG1RJM5NQ611DAJYYJ2Y9.png'),


I recomend you use #curator
to let your users pick a photo or upload a new one
Jump to solution
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 with default value
FilamentFFilament / ❓┊help
8mo ago
FileUpload default style conditional render
FilamentFFilament / ❓┊help
3y ago
FileUpload: Default values for edit Form
FilamentFFilament / ❓┊help
10mo ago
Can I change the default FileUpload Text?
FilamentFFilament / ❓┊help
2y ago