0

Possible Duplicate:
How do I Validate the File Type of a File Upload?

i would like to add file extension for filtering to file upload control in my asp.net page.and do validation on client side.

how can i set file extension dynamically..

ex:images only(.jpg;.png;*.gif;).

Community
  • 1
  • 1
Shyam s
  • 769
  • 2
  • 15
  • 38
  • 3
    The question was asked - http://stackoverflow.com/questions/71944/how-do-i-validate-the-file-type-of-a-file-upload/72221#72221 – gor Feb 22 '11 at 14:42

1 Answers1

0

in Properties pane>Filter> "txt files (.txt)|.txt|All files (.)|."

or object.Filter("txt files (.txt)|.txt|All files (.)|.");

Suraj
  • 96
  • 1
  • 2
  • 13