Seeking Help with File Upload Schema in Next.js App Using Effect Platform Backend
Anybody has got any code snippets for defining schema for file upload? I am working on a Next.js app with Effect Platform backend and I have been struggling for the last two days regarding how to define schema for a file upload field that will satisfy the frontend and backend schema requirements. The server does not recognize the File object, so I have no idea what to do. I read the section on multi-part requests in the docs, and if I implement that the server expects a PersistedFile, not File. Believe it or not, my whole two days were spent just fighting the red squiggly errors and obscure error messages. I am starting to think Effect is not worth it (at least in the current form and existing knowledge base). I am planning to give one more day to the issue. If I am not able to solve the issue then, I am back to regular typescript and Zod.
If anybody is willing to take a look and help, here is the repo:
https://github.com/sundaray/next-effect
If anybody is willing to take a look and help, here is the repo:
https://github.com/sundaray/next-effect
