I\'m going to create profile for my users in ASP.Net MVC application. Users creation controller is something like this:
[HttpPost] [ValidateAntiForgeryToken]
File inputs are not sent in the request unless your form element contains the enctype = "multipart/form-data" attribute. Change the view code to
enctype = "multipart/form-data"
@using (Html.BeginForm("Create", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { .... }