title: How to post an array of files in ASP.NET MVC 3?
body: <p>I would like to be able to post multiple files in one form.  I would like to pass these files as an array of files.  For example I would like to do this.</p>
  
  <pre><code>&lt;input type="file" name="files[0]" /&gt;
  &lt;input type="file" name="files[1]" /&gt;
  &lt;input type="file" name="files[2]" /&gt;
  </code></pre>
  
  <p>Then I would like to be able to receive these files as an array in the Controller.  I've tried this.</p>
  
  <pre><code>public ActionResult AddPart(HttpPostedFileBase[] files)
  </code></pre>
  
  <p>But that doesn't work. I've googled it but all I can find is examples on uploading one file.  Does anyone know how to do this using MVC3 C#.</p>