Пример #1
0
        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));

        }
Пример #2
0
        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);

        }