toxic

备忘录

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
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;
posted on 2014-06-11 15:39  toxic  阅读(373)  评论(0编辑  收藏  举报