I\'d like to restrict the type of file that can be chosen from the native OS file chooser when the user clicks the Browse button in the
Use input tag with accept attribute
input
accept
Click here for the latest browser compatibility table
Live demo here
To select only image files, you can use this accept="image/*"
accept="image/*"
Only gif, jpg and png will be shown, screen grab from Chrome version 44