mvc HttpPostedFileBase always null
make sure the form declaration in the view has all necessary attributes, e.g.
@using (Html.BeginForm("Create", "Product", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
...
}
Achievement provides the only real pleasure in life
make sure the form declaration in the view has all necessary attributes, e.g.
Posted by SF at 5:26 pm
No comments:
Post a Comment