我正在尝试获取我上传文件的文件路径。有没有办法得到它?在asp.net上传文件的文件路径mvc 2
<%= Html.BeginForm("Upload","Home",FormMethod.Post,new { enctype = "multipart/form-data" }) %>
<%{ %>
<input type="file" id="upload" name="upload" />
<button id="btnUpload">
upload</button>
<%} %>
[HttpPost]
public ActionResult Upload()
{
HttpPostedFileBase selectedFile = Request.Files["upload"];
//how do i get the full filelocation here?
return View();
}