iampranavdhar
TTCTheo's Typesafe Cult
•Created by iampranavdhar on 10/26/2024 in #questions
Is this uploadthing only the Turborepo/t3 stack kind of setups
I have a Nodejs backend and NextJs frontend. Can't I just create an API with /api/uploadthing and use that as nrml api and call with formdata as body? I tried creating the api, it didn't work for me when we try that in postman with form data. But it will connect when we use UploadthingButton made using generateUploadButton, but when I try to use that button it throws below error.
Error:
My initialization in nextjs
As per documentation, I need to give the router as generateUploadButton<router-name> but that router configuration is present in my Nodejs.
My code:
Am I doing something wrong here ?
1 replies