📅  最后修改于: 2022-03-11 14:49:13.810000             🧑  作者: Mango
String savePath = @"c:\temp\uploads\";
if (FileUpload1.HasFile) {
String fileName = FileUpload1.FileName;
savePath += fileName;
FileUpload1.SaveAs(savePath);
}