The input accept attribute

Note: Because of security issues, this example will not allow you to upload files.