I am checking the csv extension as below:
string extension = System.IO.Path.GetExtension(UploadFile.PostedFile.FileName);
//check file extension
if (!(extension == ".csv"))
{
}
should i need to check for the .CSV too? like:
if (!(extension == ".csv" || extension ==".CSV"))