HttpPostedFile PostedFile获取不到FileName
if (PostedFile.FileName != "")
{
try
{
string fileName = PathToName(PostedFile.FileName);
for (int i = 0; i < FileType.Length; i++)
{
if (fileName.EndsWith(FileType[i]))
{
filetype = 1;
}
}
if (filetype != 1)
{
string errs = "";
for (int i = 0; i < FileType.Length; i++)
{
errs = errs + FileType[i] + "/";
}
this.error = "System only support file as " + errs + ",Not spport " + PostedFile.ContentType + " file";
return;
}
if (PostedFile.ContentLength > FileLength)
{ this.error = "file size more than limit";&n