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
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.
I'll check that out - thanks for the suggestion!