I am using input type=\"file\", Now my requirement is that I only want to select png images, that is when I select browse a \"png\" filter should be applied.
I have
The browser support information on that page of w3schools is not correct.
If you check this page, you see that the accept
attribute it's not implemented in Firefox:
https://developer.mozilla.org/en/HTML/Element/Input
Update:
The accept
attribute is now implemented in Firefox, but users who don't have a recent version still won't have the support.