Stream data to the server #6300
-
|
I've seen examples of streaming from the server into the client, but I didn't see any examples of streaming into the server (for large files for example), I don't know if it's possible or intended for the router to support this. But really would like to see an example on how to do this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
yo, streaming to the server (like for big uploads) isn't really a "router" feature—it's more about native web APIs. u'd usually just do a if ur using TanStack Start, u can handle that stream in a server function or a custom API route. the router mostly stays on the "getting data" and navigation side of things. ✌️ |
Beta Was this translation helpful? Give feedback.
yo, streaming to the server (like for big uploads) isn't really a "router" feature—it's more about native web APIs. u'd usually just do a
fetchwith aReadableStreamin the body or use standardFormData.if ur using TanStack Start, u can handle that stream in a server function or a custom API route. the router mostly stays on the "getting data" and navigation side of things. ✌️