Filter File Input File HTML

<!-- Courtesy: Vegard ( https://stackoverflow.com/users/1209028/vegard ) -->
<input type="file" accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*">

<!-- Just write your desired file extension names in the 'accept' attribute -->
Horny Dev