TTC
Theo's Typesafe CultRichard Biroš
useUploadthing hook is slow
Hi, I recently started using Uploadthing. My use case involves attaching images to messages in my chat component. I want to ensure that images/files are only uploaded to Uploadthing when the user actually sends the message. To achieve this, I call "startUpload" from the "useUploadthing" hook when the user clicks "Send." However, the upload process is slow, typically taking about 8 seconds for a 200 KB image. In contrast, when I use the predefined UploadButton, the upload is almost instant.
Is there an explanation for this discrepancy? I have tested this in a blank project to ensure that the issue isn't related to my project but the upload from hook is still slow. There are no extensive computations or other operations that might slow down the upload request.
Any feedback would be useful. Thank you
21KMembers
View on DiscordWant results from more Discord servers?
More PostsCaching getSignedUrl without DB?In my tRPC using app, I store image files on Cloudflare R2. The client browse these images by listiVercel and Cloudflare DDoS protectionHello!
I have a question, If I host my site on vercel and put static files on the site like logo orSystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EINVAL (invalid aI cloned create t3 app locally, then I tried to run it locally by first running
pnpm install
then pnAnimating a background moving between grid elementsI made this simple switch but I wanna animate the background moving from left to right instead of ha