Open TimMikeladze opened 10 months ago
Hey Tim, would this be also required in order for tRPC to work with next-upload?
I'm not too familiar with how tRPC works. If the you're talking about transmitting a file from a trpc client to a trpc server, then the answer is no, as that's opposite of how next-upload
is built to work.
By the way for this issue, I'm 99% sure it already works, it just needs to be documented.
Basically I was just trying to put the upload function behind a mutation endpoint within trpc, so that the upload request itself is hidden from the client as the client just calls uploadImage with the files, but I guess that’s not feasible then. Thank you though :)
next-upload/client/upload
only works in the browser, but sometimes you may want to upload a buffer from nodejs.