sebS
tRPC2mo 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
), and then be able to stream a multiple responses back to the client (which works if I use the
httpBatchStreamLink
). Since these are both in the same request, the usual technique where I use
splitLink
to route file uploads to
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?
Was this page helpful?