Could not save an uploaded file in server while its working fine in local. Thinking that filesaving path is an issue with server.mappath. suggest me where I've gone wrong.. Here is what I did and its working in local.
if (file.ContentLength > 0) { var fileName = Path.GetFileName(file.FileName); var location = Path.Combine(Server.MapPath("~/FormUploads"), fileName); file.SaveAs(location); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)