Christian Carpinelli
TTCTheo's Typesafe Cult
•Created by Christian Carpinelli on 12/7/2024 in #questions
Check for ability to upload file before doing it
Hi all, I'm integrating a limit in my app, in which the free tier allows for X number of files and X number of audio files hours a month.
I'm using UploadThing for the file upload and I think it's great, but I want to understand if there's a way to do this kind of checks (maybe at the middleware level) before starting the upload on the UT servers.
I know that I can check for this using the
onBeforeUploadBegin
handle on the uploadthing client library, but I would like to also implement this check on my backend.
Thanks in advance, and once I've finished building my app (almost there) I'll be more than happy to become a paid user!3 replies
TTCTheo's Typesafe Cult
•Created by Christian Carpinelli on 9/19/2024 in #questions
ERROR handleCallbackRequest Failed to register callback result
I've integrated UploadThing in my platform. The client is a NextJS application and the server is a cluster of NestJS microservices.
The issue is that after a successful file upload (on UploadThing the file is present), the onUploadComplete callback is not executed, thus not finishing the upload correctly on the client, because I'm getting:
Since I'm developing, I've made sure to have the isDev flag to true.
Implementing UploadThing has been almost effortless and I really like it, but there's this error that I can't understand, maybe I'm dumb and forgot something... PLS help, I'm cooked.
6 replies