joschan21 / quill

Quill - A Modern SaaS-Platform Built With Next.js 13
1.91k stars 513 forks source link

File upload does not work on Live hosting #41

Open ejemi1989 opened 1 year ago

ejemi1989 commented 1 year ago

When hosting it, the file upload does not work

MohammedHTahir commented 1 year 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.

mo1nammad commented 1 year ago

you can use edge store as file uploading service instead of uploadthings

MohammedHTahir commented 1 year ago

I tried but the imlementation is different. It will take me time to modify it.

gptsparky commented 8 months ago

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.

Selvagokul commented 4 months ago

file is not uploading in live after hosting in netlify so please give me any solution