Link uploaded file to user resource with UploadThing

Hello! I've got an image uploader using UploadThing, and I know I can link it to my user using middleware and onUploadComplete, however I want to connect it to a specific resource my user owns - how do I pass additional metadata from the client component? The only way I can think to do it is by using the onClientUploadComplete method and using that to then update the row I created in my database with the onUploadComplete method. Is that correct?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server