I have an entity Movie that has 2 fields(poster and trailer) of varbinary(max) within the database. When I want to create the instance on the controller I had a lot of problem trying to get those fields from the View, finally, I got this solution:
[HttpPost]
public ActionResult Create([Bind(Exclude = "poster, trailer")]Movie movie, HttpPostedFileBase poster, HttpPostedFileBase trailer)
Any one has a better solution for this binding, just to get something like this?:
public ActionResult Create(Movie movie)
I need "poster" and "trailer" fields that they come with the post action too