using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FileLoadHandler;
namespace fileLoadHander
{
/// <summary>
/// 这个类是文件上传处理文件
/// </summary>
public class FileLoadHander:Execute
{
#region Execute 成员
#endregion
#region Execute 成员
public void execute(System.Web.HttpPostedFile postFile, System.Web.HttpContext context)
{
string fileName = postFile.FileName;//获取文件名
string savePath = context.Server.MapPath("~/fileLoad/");
//保存文件
postFile.SaveAs(savePath + fileName);
}
#endregion
}
}