ryfy
FileUpload disk and storeFileNamesIn settings not working
Thanks, please see above. I'm not linking a model, I'm handling the save manually. I suppose my question can be boiled down to this:
If I am saving manually, do I have to use the Livewire TemporaryUploadedFile
->store()
method or is there a Filament way that makes use of the disk and visibility configuration I passed to the component?11 replies
FileUpload disk and storeFileNamesIn settings not working
Also worth noting, I'm only using the form builder, not the filament admin. Currently the save code just uses the Livewire file upload process and configuration since that seems to be what the form builder is delivering to me. This is a small part of a much larger process involving multiple models, hence the manual save method. Here's the relevant bit of the save code:
This works but I would expect there to be some sort of method I could call that would handle the file upload "the Filament way" that makes uses of the configuration I set on the component. The docs for using the Form Builder in a custom application make no note of how to handle the save without a model, though it seems implied that setting a model is optional.
11 replies