user648340
user648340

Reputation:

Input accept attribute in Firefox

According to MDN accept=[MIME type] is supported in Firefox. However, I tried the following to no avail:

<input type="file" accept="text/html">


It doesn't filter the HTML files: demo.
Is it a bug or am I missing something?

Upvotes: 7

Views: 2134

Answers (2)

mattbasta
mattbasta

Reputation: 13709

This is a known Firefox bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=826185

Fortunately, it appears there is a patch for the issue that should be reviewed soon.

Upvotes: 2

Dominik Schmidt
Dominik Schmidt

Reputation: 557

I think it's a bug or not yet fully implemented.

Upvotes: 1

Related Questions