Skip to content
Loading
  • Vikas Jha
    0
    Hi,
    I think this is the line
    var fileName = Path.GetFileName(file.FileName);
    var path = Path.Combine(HttpContext.Current.Server.MapPath("~/Images"), fileName);
    giving exception. 
    Can you Please put the code in try catch and change the code like below
     var path = Path.Combine(HttpContext.Current.Server.MapPath("~/Images"), fileName);
     var fileName = path.GetFileName(file.FileName);
    0