F
Filament13mo ago
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'), ...
Jump to solution
1 Reply
Solution
Lara Zeus
Lara Zeus13mo ago
tested this, it's working for me FileUpload::make('options')->default('01HGBSG1RJM5NQ611DAJYYJ2Y9.png'), I recomend you use #curator to let your users pick a photo or upload a new one
Want results from more Discord servers?
Add your server