Using uploadthing with mongodb

Is it possible to upload it to uploadthing, then store the url in mongodb? I am using NextJS and NextAuth. I am trying to let users upload their own private images that no one but them can see, and I'm not sure how to do so with uploadthing.
2 Replies
Neto
Neto2y ago
use uploadthing, and handle the file url at the callback api route if you want to store the url on mongodb, do it
rainy
rainyOP2y ago
sorry, im not understanding. Im pretty new to this, could you show me an exaple code block?
Want results from more Discord servers?
Add your server