In the View page, code is below:
<% =Html.BeginForm("About", "Home", FormMethod.Post, new {enctype="multipart/form-data "})%>
<input type ="file" name ="postedFile" />
<input type ="submit" name ="upload" value ="Upload" />
<% Html.EndForm(); %>
In the Controller, something like this:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult About(HttpPostedFile postedFile)
{
//but postedFile is null
View();
}
But postedFile is null, how to do it?