title: Request .Form returns null
body: <p>I am not able to retrieve the values in my controller, it is returning null. Please help me find out what I have done wrong.</p>
  
  <p>below is my code</p>
  
  <p>Index.aspx</p>
  
  <pre><code>&lt;form id="form1" method="post" action="/Sample/Index" enctype="multipart/form-data"&gt;
  &lt;div&gt;
      &lt;input  type="text" id="PcId" value=&lt;%=Model.PcId %&gt; /&gt;&lt;/div&gt;
      &lt;input type="file" value="Browse" id="file"/&gt;
      &lt;input type="submit" id="submit" value="Save"/&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And in my controller</p>
  
  <pre><code>[HttpPost]
  public ActionResult Index(HttpPostedFileBase file)
  {
      string PcId = Request.Form["PcId"];
      List&lt;string&gt; fileConfigData = new List&lt;string&gt;();
  
      if (file != null &amp;&amp; file.ContentLength &gt; 0)
      {
          string FolderPath = mPath.GetFolderPath();
          var fileName = Path.GetFileName(file.FileName);
          string filePath = Server.MapPath(FolderPath + PcId) + "\\" + fileName;
          file.SaveAs(filePath);
      }
      return view();
  }
  </code></pre>