leon
leon
TtRPC
Created by leon on 8/6/2024 in #❓-help
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.
1 replies