i am using jquery form plugin for file upload . i am not able to get file in the controller . what could be wrong.
public string CreateOrganizationMeta()
{
foreach (string file in Request.Files)
{
HttpPostedFileBase postedFile = Request.Files[file];
}
}
$(document).ready(function () {
$('#MyForm').ajaxForm({
});
});
<% using (Html.BeginForm("Organization", "CreateOrganizationMeta", FormMethod.Post, new { id = "MyForm", enctype = "multipart/form-data", onsubmit = "return submitForm2(this)" }))
{ %>
<input type="file" name="Logo2" id="Logo2" />
<% } %>