Posts by user97816 • 33 points
1 post
-
3
votes2
answers2830
viewsQ: How to check if a file has been selected in the input field?
I do a form validation to ensure that the file a user uploaded is of the right type. But the upload is optional, so I want to skip the validation if it hasn’t uploaded anything and uploaded the rest…