I use Image.FromFile() to read image files uploaded by a user. For the ‘choose file’ dialog box, what file extensions can I allow?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From microsoft’s documentation: http://msdn.microsoft.com/en-us/library/stf701f5.aspx
I believe this should be the filter string:
Note that I allowed for additional valid extensions for JPEG and TIFF images.