title: sending IEnumerable<HttpPostedFileBase> from View
body: <p>I am sending Images to Action containing <code>IEnumerable&lt;HttpPostedFileBase&gt;</code> </p>
  
  <p>Following is my model</p>
  
  <pre><code>public class M
  {
      public IEnumerable&lt;HttpPostedFileBase&gt; images { get; set; }
  }
  </code></pre>
  
  <p>And action is</p>
  
  <pre><code>    [HttpPost
  public async Task&lt;ActionResult&gt; ABC(CODE.M model)
  {
      ...
  }
  </code></pre>
  
  <p>And my file upload controls are three in numbers. like this</p>
  
  <pre><code>@using (Html.BeginForm(new { enctype = "multipart/form-data" })) 
  {
      Main &lt;input type="file" id="image1" name="images" /&gt;
      Image 2  &lt;input type="file" id="image2" name="images"/&gt;
      Image 3 &lt;input type="file" id="image3" name="images" /&gt;
  }
  </code></pre>
  
  <p>On fiddler its showing all images are getting posted but on action the <code>IEnumerable&lt;HttpPostedFile&gt;</code> showing count 0</p>
  
  <p>On fiddler all three fileupload elements showing <code>images</code> as their name</p>
  
  <p>Anyways I have also tried using like this</p>
  
  <pre><code>Main &lt;input type="file" id="image1" name="images[0]" /&gt;
  ...
  ...
  </code></pre>
  
  <p>But obviously it must and is showing <code>null</code> on action when Post</p>
  
  <p>My question is how should I name my fileupload elements?</p>
  
  <p>Anyone came across this before? </p>