I am working on MVC4 application in VS 2010. The problem is while doing file uploading i can't find Request class to call it its method in contoller.. so what i can i do to use it in my project.. please help me as my whole work is struck because of it.. Thanks
here is my code.. the bold text shows that this component is not found..
public ActionResult Save()
for (int i = 0; i< Request .Files.Count; i++)
HttpPostedFileBase file = Request .Files[i];
file.SaveAs(Server.MapPath(@"~\Files\" + file.FileName));