Fileupload in Single record editing with custom page
im trying to follow this instruction online https://laraveldaily.com/post/filament-edit-only-single-record-custom-page, but the example was only for text input.
I try something like fileupload for my case, since the mountng and saving data work around array, i have a problem for fileupload (filepond).
instead of saving the filename, it save a weird json (logs on the bottom)
and the tmp file are not moved to the storage disk, is there a way to make fileupload in my custom page works like in resource page ?
https://pastebin.com/YypB3kbd (the code)
I try something like fileupload for my case, since the mountng and saving data work around array, i have a problem for fileupload (filepond).
instead of saving the filename, it save a weird json (logs on the bottom)
and the tmp file are not moved to the storage disk, is there a way to make fileupload in my custom page works like in resource page ?
https://pastebin.com/YypB3kbd (the code)
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Solution
Thanks for all the help, i had to manually mutate the file before storing in db, so it will take the actual file path