file input - prevent selection of certain types of files and size
Posted
by Victor
on Stack Overflow
See other posts from Stack Overflow
or by Victor
Published on 2010-04-30T07:41:58Z
Indexed on
2010/04/30
7:47 UTC
Read the original article
Hit count: 284
Is there a way to prevent the user from selecting a file that is not a specified file type when they browser for the file on their computer? For example, when a user browseses to upload an image file I would for them to only see images (jpg, png, ect.) that are less than 20mb. Is this something that can be accomplished with asp.net mvc and jquery or do I need to use flash or a java applet?
© Stack Overflow or respective owner