accept only image input file
snippet in html

accept only image input file

user3544

<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />