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.
If you want to upload not only one file, you need to use enctype="multipart/form-data" in your form.
enctype="multipart/form-data"
@using (Html.BeginForm("", "Client", FormMethod.Post, new {enctype="multipart/form-data"}))
And controller:
[HttpPost] public ActionResult AddPart(IEnumerable files)
All other parts is ok.