📜  c# 文件上传示例 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.810000             🧑  作者: Mango

代码示例1
String savePath = @"c:\temp\uploads\";
if (FileUpload1.HasFile) {
  String fileName = FileUpload1.FileName;
  savePath += fileName;
  FileUpload1.SaveAs(savePath);
}