for(fileCount=0;fileCount<files.Count;fileCount++)
{
//定义访问客户端上传文件的对象
System.Web.HttpPostedFile postedFile=files[fileCount];
string fileName,fileExtension;
fileName=System.IO.Path.GetFileName(postedFile.FileName);
if(fileName!=string.Empty)
{
//取的上传文件的扩展名
fileExtension=System.IO.Path.GetExtension(fileName);
//上传的文件信息
strMsg.Append("上传文件的类型:"+postedFile.ContentType.ToString()+"<br>");
strMsg.Append("客户端文件地址:"+postedFile.FileName+"<br>");
strMsg.Append("上传文件的文件名:"+fileName+"<br>");
strMsg.Append("上传文件的扩展名"+fileExtension+"<br><hr color=red>");
//保存到指定的文件夹string fileName1 = DateTime.Now.ToString("yyyyMMddhhmmss"); 
string path = Server.MapPath(".") + "/Uploads/" + fileName1 + fileExtension;