Given this model, is it possible to use the Html.EditorFor() to render a file upload input element to the page? I played around with the Datatype of the property FileName,
Add: htmlAttributes = new { type = "file" }
htmlAttributes = new { type = "file" }
<%: Html.EditorFor(model => model.FileName, new { htmlAttributes = new { type = "file" }}) %> <%: Html.ValidationMessageFor(model => model.FileName) %>
Note: I'm using MVC 5, I have not tested on other versions.