title: How to get the full Path of the file upload control in a string variable in asp .net?
body: <p>I would like to get the full path of the file upload control in the string variable. The file may be stored in any location other than the root of the project. Anybody please help out.</p>
  
  <p>The situation is:</p>
  
  <pre><code>string file = Path.GetFileName(ExcelFileUpload.FileName);
              if (file.EndsWith(".xlsx"))
              {
                  // Reading from a binary Excel file (format; *.xlsx)
                  FileStream stream = File.Open(file, FileMode.Open, FileAccess.Read);
  </code></pre>