Stop File stream if file is too large
Hey guys! I'm trying to do some file upload with trpc and I took the example from here: https://github.com/trpc/trpc/blob/main/examples/minimal-content-types/server/index.ts
In the console i can see if the file is too big:
POST /api/trpc/upload.file 413 in 426ms
So i see the 413 status.
But in the browser, the request stays in pending for a while then goes into (failed)net::ERR_CONNECTION_RESET
Any tips what i could look into to debug the issue?GitHub
trpc/examples/minimal-content-types/server/index.ts at main ยท trpc...
๐งโโ๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. - trpc/trpc
0 Replies