t
tRPC
t
tRPC
@trpc/client vanilla client not appending formdata data to the request/payload
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
Original message was deleted
K
kaledoesit
โข
1/17/25, 5:33 PM
I believe tRPC only supports a content
-type of
"application
/json
"
K
kaledoesit
I believe tRPC only supports a content-type of "application/json"
C
cc
โข
1/17/25, 6:03 PM
why would it not support it when they have docs for formdata and the actual server end parses it on its own
?
K
kaledoesit
โข
1/17/25, 6:05 PM
Sorry I didn
't see that before
. Not sure if this helps
:
https://github.com/trpc/trpc/tree/next/examples/minimal-content-types
GitHub
trpc/examples/minimal-content-types at next ยท trpc/trpc
Move Fast and Break Nothing
. End
-to
-end typesafe APIs made easy
.
- trpc
/trpc
C
cc
โข
1/17/25, 6:11 PM
i
've looked at this before and it
's using react
, i
'm using the vanilla client
, i
'm assuming something
's wrong with vanilla one as it
's not attaching form data on the client side as the server end is completely working
C
cc
โข
1/17/25, 6:29 PM
okay i figured it out the problem is
httpBatchLink
httpBatchLink
switching to
httpLink
httpLink
works all fine
.
httpBatchLink
httpBatchLink
httpLink
httpLink