You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the example uses React/Next, I attempted using tRPC-sveltekit. I received an error Unhandled Promise Rejection: TRPCClientError.
I'm new to tRPC-sveltekit. But, what I'm wondering is, does it support uploading form data? I don't want to set up a separate traditional sveltekit API route for files (loses type benefits) or encode my files in base64 to send in JSON (loses performance)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It seems tRPC supports form data:
https://discord-questions.trpc.io/m/1234916242305978491
https://github.com/trpc/trpc/tree/next/examples/next-formdata
Although the example uses React/Next, I attempted using tRPC-sveltekit. I received an error Unhandled Promise Rejection: TRPCClientError.
I'm new to tRPC-sveltekit. But, what I'm wondering is, does it support uploading form data? I don't want to set up a separate traditional sveltekit API route for files (loses type benefits) or encode my files in base64 to send in JSON (loses performance)
Beta Was this translation helpful? Give feedback.
All reactions