public ActionResult Files(HttpPostedFileBase files) { string cmd = this.Request.Params["cmd"].ToString(); //ControllerContext.RouteData ElFinder el = new ElFinder(options); return Content(el.Run(this.Request)); }
public ActionResult Files() { string cmd = this.Request.Params["cmd"].ToString(); //ControllerContext.RouteData ElFinder el = new ElFinder(options); string contentType = "Content-Type: " + cmd == "upload" ? "text/html" : "application/json"; return Content(el.Run(this.Request), contentType); }