[摘要]'); savePath = root.GetElementsByTagName("userPath").Item(0).InnerText.Trim(); tr...
');
savePath = root.GetElementsByTagName("userPath").Item(0).InnerText.Trim();
try
{
maxSize = Convert.ToInt64(root.GetElementsByTagName("maxSize").Item(0).InnerText.Trim());
}
catch { maxSize = 10*1024; }
}
protected void Page_Load(object sender, EventArgs e)
{
string[] allowedExt = new string[] { }, denyedExt = new string[] { };
string savePath = String.Empty;
long maxSize = 10000;
string type = Request.QueryString["Type"];
if(type!=null&&type!=string.Empty)
type=type.ToLower();
else
type="file";
if (type == "image")
{
GetConfig("image", out allowedExt, out denyedExt, out savePath,out maxSize);
}
if (type == "file")
{
GetConfig("file", out allowedExt, out denyedExt, out savePath, out maxSize);
}
if (type == "flash")
{
GetConfig("flash", out allowedExt, out denyedExt, out savePath, out maxSize);
}
if (savePath == string.Empty
关键词:使aspx页面能接受HTML,asp的页面传送的文件