This is my code:
<label for="uploadFile" class="custom-uploadFile">
<i class="fa fa-cloud-upload"></i> UPLOAD ID
</label>
<input class="form-control input-lg" name="picture" id="uploadFile" type="file" style="display:none;" required>
I want to let this upload field be required, but the input is hidden.
I must use some JavaScript. Or what can I use to solve this problem? I watched a lot of tutorials, but they did not work!
display: none
. Moreover, do not use inline css.