if (fluTypeCheck.HasFile)
{
string strExt = System.IO.Path.GetExtension(fluTypeCheck.FileName);
string strPath = fluTypeCheck.PostedFile.FileName.ToString();
if (System.IO.File.ReadAllText(strPath).Contains("%PDF-1"))
{
Response.Write("<script>alert('Its a Pdf')</script>");
}
if (System.IO.File.ReadAllText(strPath).Contains("\x4D\x5A& ...
Go to the complete details ...