Next.js Discord

Discord Forum

UTapi for Uploadthing or is there something better?

Unanswered
Singapura posted this in #help-forum
Open in Discord
SingapuraOP
I have to make a form in which when i submit the form, the images are uploaded to uploadthing, and then all formdata along with the urls of the images are added to the database.

Previously, I made an next js route handler and used utapi to which I gave the images via formdata and get back the urls and ids.

I am currently refactoring a lot of apis and components. I have also upgraded to uploadthing v7. I was wondering is utapi is a still way to go or is there something else better.

I don't want to manually submit images and then submit the form, I want to submit both images and form with same button.

0 Replies