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.