Serving files with TRPC and Express
Hi!
Is there any way to serve files using express while using trpc typed way?
As in using
but also being able to do on the client instead of having to split between two solutions
but also being able to do on the client instead of having to split between two solutions
1 Reply
I believe trpc doesn't handle file responses. What you'd do instead is transmit a file link via the api and invoke the link (signed for security) to download/serve the file.