I'm trying to add upload a file field inside my Views. I edited my ViewModel and added below line to it: public HttpPostedFileBase ImageUrl { get; set; } Then I added below helper for file upload:
@Html.EditorFor(model => model.ImageUrl)
I also changed my form helper like this:
@using (Html.BeginForm("Create", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
However it shows internal fields of file when I run my view:
What I have missed that lead to this situation?