Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult SaveImage(HttpPostedFileBase file)
- {
- var path = "";
- if (file != null)
- {
- path = Path.Combine(Server.MapPath("~/Content/Images"), file.FileName);
- file.SaveAs(path);
- }
- return View();
- }
Add Comment
Please, Sign In to add comment