How can i validate File Input with zod? #2292
Unanswered
niklasgrewe
asked this question in
Q&A
Replies: 1 comment 12 replies
-
Are you trying to upload a file with a mutation? Mutations don't yet support file upload: #2270 |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i want to validate a File Input like this:
when i try to use it, i get the runtime error:
How can i solve this? I know that the validation was used both, on client and on server. I think that this is the problem, because nodejs don't know about File Type, isn't it?
Beta Was this translation helpful? Give feedback.
All reactions