Closed Bug 995190 Opened 10 years ago Closed 9 years ago

Implement the accept attribute for the form and file upload controls for custom file extension

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

28 Branch
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 826176

People

(Reporter: brunoaiss, Unassigned)

Details

This is a follow-up from bug 565274 which is only implementing the MIME types part.

The idea of this bug is to also implement the file extensions part as specified (the last bullet of the list):
http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#attr-input-accept

For example:
<input type="file" accept=".jpg,.pdf">

This means that it will show, as the option in the file picker, files with .jpg and .pdf extensions.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.