Can I use:
<input type="file" name="files" id="files" multiple="multiple" />
and bind it to:
[HttpPost]
public ActionResult Upload(IEnumerable<HttpPostedFileBase> files)
{
...
}
I'm writing a web app for modern browsers and don't have to worry about IE so I'd like to avoid using Flash. Right now files is always null when I post the form. Is there any way to get this to work in MVC 3?
Thanks!
public ActionResult Upload(HttpPostedFileBase[] files)