title: C#/MVC - How to loop through Multiple Files (from a file input), when the form contains multiple file inputs?
body: <p>Here's my HTML:</p>
  
  <pre><code>&lt;input id="openbox_actual" class="btn btn-lg btn-warning" type="file" name="videoFile" style="display: none;" /&gt;
  &lt;input id="openbox_actual2" class="btn btn-lg btn-warning" type="file" accept="image/*" name="screenShots" multiple="multiple" style="display: none;" /&gt;
  </code></pre>
  
  <p>As shown above, one file input takes a video file, and the other takes <strong>multiple</strong> image files.</p>
  
  <p>Here's the controller:</p>
  
  <pre><code>HttpPostedFileBase file = Request.Files["videoFile"];
  HttpPostedFileBase screens = Request.Files["screenShots"];
  </code></pre>
  
  <p>From the code above, I can access/upload "file" just fine.</p>
  
  <p>However, I can't figure out how to access all the files inside "screens" <strong>ONLY</strong>.</p>
  
  <p>I've seen many examples where people iterate through the "HttpPostedFileCollection", but that contains ALL the files, in EVERY file input.  I just want all the files from the "screenShots" multiple file input.</p>
  
  <p>Extra points if anyone knows how to "limit" the number of files to 8.  (e.g. Where the "screenShots" file input only allows you to upload 8 files total.</p>
  
  <p>Thanks,
  You guys are great!</p>