Validate File Name in File Upload For Optional Files #293
Unanswered
jdgamble555
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You could use |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a form with an optional image for a post. If the File Upload is left empty, it will still send this data:
So in reality I need a way to check that
name='undefined'
respectively, or the file must be a of typejpeg
. This is given that an invalid file could also besize=0
.Here is what I have:
But I need some way to check that there is no file attached by checking the file
name='undefined'
.J
Beta Was this translation helpful? Give feedback.
All reactions