how to make file only accept jpg and png in html code example
Example 1: accept only image files upload html
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
Example 2: file input file types
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">