Checking for file extension
I have a class that allows certain types of files to be uploaded. Currently, it checks the files ContentType, however for example I want to allow .csv files to be uploaded and it's ContentType is: application/octet-stream but so is .ini and .dbo files (which I don't want) they all the same ContentType.
I would like to check for file extension as well. But FileUpload.PostedFile doesn't have that property.
Any suggestions?
Thanks!

