myDoc.Load(FileUpload2.FileContent); string XMLpath = Server.MapPath(ConfigurationSettings.AppSettings["PDFLocation"]) + FileUpload2.FileName; myDoc.Save(XMLpath); file = new FileInfo(XMLpath); //here I check if the file is valid. If not, delete file.Delete();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)