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
you can use javascript function onChane event of a file function
filesChange() { checkFile(); }