uploading image via trpc endpoint
Hello, is there any example for uploading an image to a trpc endpoint?
4 Replies
I'm having the same issue, passing the img as a base64 gives me a status code 431 "headers fields too large", any possible solution?
I have implemented this before, but it's in a private repository. If you still need this, DM me and I will put together a code snippet for you
Yes please, I am using base64 right now but for larger images it makes it impossible to send! Would appreciate a snippet alot. Thanks
Ah, so you're doing direct uploads. Can't help you in that case, as I'm using presigned URLs to upload straight to S3