I have this code
if ( FileUpload1.PostedFile.ContentType == "image/jpeg" || FileUpload1.PostedFile.ContentType == "image/bmp" || FileUpload1.PostedFile.ContentType == "image/gif" || FileUpload1.PostedFile.ContentType == "image/png" || FileUpload1.PostedFile.ContentType == "image/jpg")
{
response.redirect("welcome.aspx");
}
else
response.write("Invalid Type");
The above code worked well with localHost server
BUT When I hosted The above code to production server Always I got the else value.
...
Go to the complete details ...