tags:

views:

127

answers:

1

I have a form file upload. When the users goes to upload an image, it displays all files on their computer. How can I make the HTML upload dialog window to only display JPG, GIF and PNGs?

+3  A: 

The file upload dialog in the web browser is outside of your control. You could create a Java applet for uploading images, like Facebook did.

Marcus Adams
Are you sure it's outside of my control? When I go to http://fotoflexer.com/ and click "Upload Photo", they seem to be limiting uploads based on filetype/extension.
Teddy
@Teddy, they're using Flash.
Matthew Flaschen