Open ejemi1989 opened 9 months ago
Same I can't seem to make it work. the getFile error seems to be the issue as it keeps trying to connect multiple times and it never does. The solution was to upgrade uploadthing to the latest version around 6.0.2, now this works well so you never get an issue with getFile anymore but instead it doesn't even upload.
you can use edge store as file uploading service instead of uploadthings
I tried but the imlementation is different. It will take me time to modify it.
I had the same issue, file uploading didn't work when deployed. It was stuck at the upload box loading. Looking at the logs, the api/trpc/getFile endpoint was being polled every few seconds and never stopped (also error 404).
Afterward, I noticed the file was successfully uploaded to UploadThing but it was NOT added to the database (thus the infinite polling), so the issue was the code to add the file to the database wasn't running (the code in the callback onUploadComplete in src/app/api/uploadthing/core.ts).
Turns out Vercel was the issue, it allowed a maximum of a few seconds of computing at a time so the uploaded file was never added to the database as the code to do it timed out. Thus, the infinite polling.
TLDR; the solution is to deploy elsewhere like Netlify or upgrade from the Hobby plan on Vercel.
file is not uploading in live after hosting in netlify so please give me any solution
When hosting it, the file upload does not work