tRPCttRPC
Powered by
sebS
tRPC•3w ago•
2 replies
seb

v11 Streaming responses for file uploads

@trpc/server
I'd like to be able to upload a file in a multipart/formdata request (this currently works if I use the
httpLink
httpLink
), and then be able to stream a multiple responses back to the client (which works if I use the
httpBatchStreamLink
httpBatchStreamLink
). Since these are both in the same request, the usual technique where I use
splitLink
splitLink
to route file uploads to
httpLink
httpLink
and then route streaming/other mutations through the stream link is not viable here, as far as I can tell. Is it at all possible in trpc v11 to submit a multipart/formdata request and get the response streamed from a generator function endpoint?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Streaming responses (eg. for streaming ai chat completion text)
sebSseb / ❓-help
3y ago
File uploads / downloads
DawsonDDawson / ❓-help
8mo ago
Custom hooks v11
BEEIRLBBEEIRL / ❓-help
9mo ago
tRPC v11 FileLike
jmacJjmac / ❓-help
11mo ago