TendencyDriven
TendencyDriven
TTCTheo's Typesafe Cult
Created by TendencyDriven on 1/14/2024 in #questions
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?
2 replies