I think u are looking for the accept parameter. Try this works
<input type="file" accept="image/*" />
More Related Contents:
- How to collect and manipulate data in HTML using
- Disabling Chrome Autofill
- POST unchecked HTML checkboxes
- Chrome ignores autocomplete=”off”
- Is there a W3C valid way to disable autocomplete in a HTML form?
- Put icon inside input element in a form
- Does form data still transfer if the input tag has no name?
- When submitting a GET form, the query string is removed from the action URL
- Is autocomplete=”off” compatible with all modern browsers?
- Multiple submit buttons in an HTML form
- Disabled form fields not submitting data [duplicate]
- Is well formed without a ?
- HTML radio buttons allowing multiple selections
- Disable spell-checking on HTML textfields
- Is there any benefit to adding accept-charset=”UTF-8″ to HTML forms, if the page is already in UTF-8?
- Why does file upload not work without the enctype property?
- Can a ::before selector be used with a ?
- is form enctype “application/json” available?
- HTML select form with option to enter custom value
- HTML: Characters allowed for name attribute of input element?
- Forms with action=””
- Stop LastPass filling out a form
- HTML input field OUTSIDE of a form
- Firefox form targeting an iframe is opening new tab
- Can you style html form buttons with css?
- HTML Input is not updating value attribute on change
- HTML multiple select box
- Can I use an HTML input type “date” to collect only a year?
- How can I control the height of an Option element in Webkit?
- How do I style radio buttons with images – laughing smiley for good, sad smiley for bad?