Organizational Research By

Surprising Reserch Topic

uploaded httppostedfile is null using -'c#,,'

uploaded httppostedfile is null  using -'c#,,'

On the View:

<% =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, there's something like this:

public ActionResult About(HttpPostedFile postedFile)
    //but postedFile is null

postedFile is null in About(). How do I upload the file?

asked Sep 7, 2015 by rajesh
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.