title: Upload multiple files with single input Asp Mvc
body: <p>I want to upload multiple files including Word Documents, Pdf and Images.
  I need to use a single input for files because we don't know how many files will be uploaded.</p>
  
  <p>My code is this but I have problem that I can't send files to server side.</p>
  
  <p>Controller Code :</p>
  
  <pre><code>public ActionResult Create([Bind(Include = "Id,Content")] Message message, IEnumerable&lt;HttpPostedFileBase&gt; files)
  {
       if (ModelState.IsValid)
       {
           // Object save logic
           SaveFiles(message,files);
           return RedirectToAction("Index");
       }
       return View(message);
  }
  </code></pre>
  
  <p>Part of view code :</p>
  
  <pre><code>&lt;form name="registration"  action=""&gt;
      @Html.ValidationSummary(true, "", new { @class = "text-danger" })
          &lt;div class="form-group"&gt;
              &lt;label for="Content" &gt;Content:&lt;/label&gt;
              &lt;textarea class="form-control compose_content" rows="5" id="Content" name="content"&gt;&lt;/textarea&gt;
  
              &lt;div class="fileupload"&gt;
                        Attachment :  
  
                      &lt;input id="files" name="files" type="file" multiple /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;button type="submit" class="btn btn-default compose_btn" &gt;Send Message&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I don't have problem with saving files and saving the object.
  only problem :
  files list is null.</p>