FileUpdload not displaying file preview
Firstly, yes.. I linked the storage folder to the public folder.
I have a model
Event
that has a nullable string column image
.
I want to have a default image that is displayed on the frontend when image is uploaded.
The default image is at public/img/event/default-event.png
The uploaded files from Filament should go to storage/app/public/event/xxx.png
(public/storage/event/xxx.png
)
Currently, I have defined an Accessor on the model:
That Storage::url($value)
is causing trouble for Filament, as it doesn't show the file preview when used with the FileUpload form component.
For reference, this is the component in use:
0 Replies