#StackBounty: #html5 #file #google-chrome #input #file-extension Input type=File "Accept" property does not work in Chrome?

Bounty: 100

Have been through quite some documentation but don’t seem to get this very basic thing working in Chrome.

<input type="file" accept=".jpg, .png"/>

The dialog that opens just shows “Custom Files” in the extension drop-down. See this Fiddle.

enter image description here

It only seems to work with a single extension specification. Also tried using some mime types to no avail.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.