tRPCttRPC
Powered by
leonL
tRPC•2y ago
leon

Examples-next-formdata

https://github.com/trpc/examples-next-formdata

I am using tRPC with an Express server and am trying to get formData to work with tRPC. From what I have read, it is now possible to do so. However, when I tried running the examples-next-formdata repository to better understand its implementation, it always fails with the following error:

ReferenceError: File is not defined
    at Object.file (file:///.../zod-form-data/dist/index.mjs:408:35)
ReferenceError: File is not defined
    at Object.file (file:///.../zod-form-data/dist/index.mjs:408:35)


Does anyone have an idea what might be causing this issue? And, is it really possible to use formData to handle large images and other files directly through tRPC?

I have searched for a solution but found many conflicting answers. Any help or clarification would be greatly appreciated.
GitHub
GitHub - trpc/examples-next-formdata
Contribute to trpc/examples-next-formdata development by creating an account on GitHub.
GitHub - trpc/examples-next-formdata
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

FormData TRPCClientError
vpjmVvpjm / ❓-help
12mo ago
Database error on examples-next-prisma-starter
mokyxMmokyx / ❓-help
3y ago