Custom save behavior for FileUpload

I have a FileUpload component on a Resource form but when saving, I need to create a File record (which is not the current Resource), then save that File's ID into the Resource. I've been trying to play around with afterStateUpdated() and dehydrateStateUsing() but I'm not getting anywhere. How do I build custom saving behavior into the FileUpload component?
2 Replies
toeknee
toeknee4w ago
I'd probably recommend using the spatie media file upload. then it uploads to a seperate table. you can link vy id's etc then.
gmgarrison
gmgarrisonOP4w ago
I'll check that out - thanks for the suggestion!

Did you find this page helpful?