input file accept image all code example
Example: accept only image files upload html
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />