The input accept attribute
Select image:
Note:
Because of security issues, this example will not allow you to upload files.