public ActionResult ImageUpload() { var file = System.Web.HttpContext.Current.Request.Files["HelpSectionImages"]; if (file != null && file.ContentLength > 0) { var imgPath = service.CreateDirectory("/UploadImg/T_" + User.Identity.Name + "/") + file.FileName; var Path = Server.MapPath(imgPath); file.SaveAs(Path); return(Content(imgPath)); } return(Content("")); }