string filePath = FileUpload1.PostedFile.FileName; // 獲取上傳文件的路徑
string fileName = filePath.Substring(filePath.LastIndexOf("\\") + 1); // 獲取文件名稱
string fileSize = Convert.ToString(FileUpload1.PostedFile.ContentLength); // 獲取文件名稱
string fileExtend = filePath.Substring(filePath.LastIndexOf(".") + 1); // 獲取文件擴展名
string fileType = FileUpload1.PostedFile.ContentType; // 獲取文件類型
string serverPath = Server.MapPath("指定文件夾名稱") + filePath.Substring(filePath.LastIndexOf("\\") + 1);
FileUpload1.PostedFile.SaveAs(serverPath); // 確定上傳文件