برای آپلود فایل به سرور کافی است یک ActionResult به شکل زیر تعریف نماییم .

HttpPosteFileBase یکی دیگر از  Model Binder های توکار MVC است

[HttpPost]
public ActionResult Upload(System.Web.HttpPostedFileBase file)
{
       string filename = Server.MapPath("~/files/somename.ext");
       file.SaveAs(filename);
       return RedirectToAction("Index");
}