Createing A new directory to Save uplaoded Files

Sandhyab
Posted by Sandhyab under ASP.NET category on | Points: 40 | Views : 871
 if (!System.IO.Directory.Exists(fullpath))
{
System.IO.Directory.CreateDirectory(fullpath);
}


Above Condition Checks the Wheather path alredy existed or not if the path does not existed then it will create A new directory
to save Files
  FileUploadAttach.SaveAs(savingPath);

Comments or Responses

Login to post response