F
Filamentβ€’2y ago
dinero

FileUpload base64 data

very new to filament, laravel, and php overall so be gentle πŸ˜‡ Hi, i have a model which strictly stores base64 encoded data; not urls or filenames. its fine to have it temporarily stored in the livewire public disk as ideally this data isn't stored there for long, and im aware of the performance and storage implications, but i am wondering: How can i override, or customize FileUpload somehow to support this? because the way file upload does temporary urls and such is fine, but it stores the field as the URL in the database. I can live with any problems that has as long as i can get it to store the raw file contents as base64 in the column
1 Reply
dinero
dineroOPβ€’2y ago
on second thought maybe i can just do this in a mutateFormDataBeforeCreate yeah that worked lol

Did you find this page helpful?