public void ProcessRequest (HttpContext context) { context.Response.ContentType = "image/jpeg"; string savedFileName = ""; foreach (string file in context.Request.Files) { HttpPostedFile hpf = context.Request.Files[file] as HttpPostedFile; if (hpf.ContentLength == 0) continue; savedFileName = context.Server.MapPath(context.Session["FileUpload"].ToString()); hpf.SaveAs(savedFileName); } context.Response.Write(savedFileName); }
IRequiresSessionState
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)