Hi,
I want uploding ms word files. .Doc or .Docx ...
i use this Code , but return error "file type must .doc or .Docx"
if (wordFileUpload1.HasFile)
{
try
{
if (wordFileUpload1.PostedFile.ContentType == "application/msword")
{
if (wordFileUpload1.PostedFile.ContentLength < 5242880)
{
string filename = Path.GetFileName(wordFileUpload1.FileName);
wordFileUpload1.SaveAs(Server.MapPath("~/") + shortdate2 + "/" + e_mail_tb.Text + "/" + filename);
StatusLabel.Text = "<a style=\" color: Green\">file uploding Ok</a>";
}
else
{
wordLabel.Text = "<a style=\"color: Red\">file size error </a>";
word_f ...
Go to the complete details ...