case "doc": ContentType = "application/msword"; bre
case "doc":
ContentType = "application/msword";
break;
case "pdf":
ContentType = "application/pdf";
break;
case "jpg":
case "jpeg":
ContentType = "image/jpeg";
break;
case "gif":
ContentType = "image/gif";
break;
case "zip":
ContentType = "application/zip";
break;
case "txt":
ContentType = "text/plain";
break;
case "htm":
case "html":
ContentType = "text/html";
break;
case "xls":
ContentType = "application/vnd.ms-excel";
break;
case "ppt":
ContentType = "application/vnd.ms-powerpoint";
break;
default:
ContentType = "application/octet-stream";
break;