title: SaveAs() file in Application's folder from fileUpload in ASP C#
body: <p>I have a <code>FileUpload</code> control in ASP.NET.</p>
  
  <p><strong>C# Code</strong></p>
  
  <pre><code>if (FileUpldFile.HasFile)
  {
     try
     {
        //saving the file
        FileUpldLicenceFileMOT.SaveAs("c:\\SaveDirectory" + FileUpldFile.FileName);
  
        //Getting the Path of saved file
        var pathMot = @"c:\\SaveDirectory" + FileUpldFile.FileName;
  
        //Getting File Extension
        var fileExtension = Path.GetExtension(pathMot).Substring(1);
        ViewState["fileExtension_MOT"] = fileExtension;
       .....
  </code></pre>
  
  <p>Here I want to save the file in my application's folder, my application folder's structure is like this:</p>
  
  <pre><code>--&gt; Root Folder
     --&gt; Documents
        --&gt; sampleFileFromFileUpload.png
  </code></pre>
  
  <p><strong>Question:</strong> how can I save the file using <code>SaveAs()</code> in the application's internal folder (i.e: <code>Root Folder &gt; Documents</code>) from a <code>FileUpload</code> component?</p>