I have a partial view:
<% using (Html.BeginForm("add", "home", FormMethod.Post, new { enctype = "multipart/form-data" })){%><input name="IncomingFiles" type="file" /><div class="editor-field"><%: Html.TextBox("TagsInput") %></div><p><input type="submit" value="Create" /></p><% } %>
And this in the controller:
[HttpPost]
public ActionResult add(HttpFileCollection IncomingFiles, string TagsInput)
{
return View();
}
It will simply not match up my uploaded file to the HttpFileCollection, they come out as HttpFileCollectionBase. How can i get the view to pass me a HttpFileCollection?
Do i need any specific BeginForm args?
Thank you!