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

Manas MohapatraRank #182 · 13.2K reputationPosted Sep 26, 2017, 2:31 AM EDT
habib ullahRank #8,316 · 224 reputationPosted Sep 26, 2017, 8:37 PM EDT