I have the following model
public class VacancyDetailModel
{
public HttpPostedFileBase Resume {get;set; }
}
This is my form.
@using (Html.BeginForm())
{
<input type="file" name="Resume" />
<input type="hidden" name="fhController" value="VacanciesController" />
<input type="hidden" name="fhAction" value="VacancyDetail" />
<button id="btn-save" class="btn btn-highlight" type="submit">Solliciteer direct empty form</button>
}
This is my controller
[HttpPost]
//[ValidateFormHandler]
public ActionResult VacancyDetail(VacancyDetailModel formModel)
{
return this.View(model);
}
When I place a watch on my model, the Resume field is always null
.