html validation for upload image only code example Example: accept vedio pdf files upload html <input type="file" accept=" video/*" />