While utilizing HTML5 client-side validation in my web form, I've encountered an issue with the file field. It seems that the required error is not displaying as expected because the input type file is being hidden by CSS.
This is a snippet of my code:
<input id="imageUpload" class="form-control" type="file" name="image" placeholder="Photo" capture required>