Well, I'm not an expert with form input, but it might be that you can't tell the browser "only accept PNG files, thanks". Pretty sure you can specify an initial file name, but the user's not forced to honour it. Having a look at the HTML spec, I do not know if the "accept" keyword to set a mime type can be used, or if IE/Firefox use that to restrict file types.