[V5] Check whether an input is an array of files or a single one. #1780
Unanswered
lucasKuratani
asked this question in
Help
Replies: 1 comment
-
Can you share the HTML for the file input? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to validate a request that accepts single and multiple file uploads. The problem appears when I try to upload a single file using an array in the schema. The schema is the one that follows.
When I try to upload no files, it works. When I try to upload multiple files, it works. When I try to upload a single file, It does not work. It makes sense to me, but I would like to know if there is a way around it.
Beta Was this translation helpful? Give feedback.
All reactions