摘要:
//判断是否选择文件 if (!FileUpload1.HasFile) { Response.Write("没有要上传的文件!"); return; } string filepath = FileUpload1.PostedFile.FileName; int i = filepath.IndexOf("."); string fileType = filepath.Substring(i); string[] extens = new string[] { ".jpeg", ".bmp", ".pn 阅读全文