if (file != null && file.ContentLength > 0)
{
var allowedExtensions = new[] { ".png", ".jpeg", ".jpg" };
file.SaveAs(Server.MapPath("~/images/") + file.FileName);
emp.imag = file.FileName;
}
is not working and not show the extension in the images
habib ullahPosted Sep 27, 2017, 12:37 AM
Manas MohapatraPosted Sep 26, 2017, 6:31 AM