title: Path issues in File upload ?
body: <p>I am trying to implement a simple file upload, but having some troubles. When I hard-code the path it works fine. But for some reason, when I try to use a file upload, the controller name is being appended to the path</p>
  
  <p>Hard coded path (what I'm trying to get):</p>
  
  <pre><code>@"C:\Users\Scott\Documents\The Business\MasterSpinSite\MasterSpin\MasterSpin\LOADME.txt"
  </code></pre>
  
  <p>Path I am getting an exception with (notice the "appz" controller name):</p>
  
  <pre><code>C:\Users\Scott\Documents\The Business\MasterSpinSite\MasterSpin\MasterSpin\appz\LOADME.txt'
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>public ActionResult Load(spinnerValidation theData, HttpPostedFileBase file)
      {
  
          if (file.ContentLength &gt; 0)
          {
  
              string filePath = Request.MapPath(file.FileName);
  
              string input = System.IO.File.ReadAllText(filePath);
              string[] lines = Regex.Split(input, "#!#");
             // ...... do stuff
  
          }
  </code></pre>
  
  <p>My View</p>
  
  <pre><code>&lt;form action="" method="post" enctype="multipart/form-data"&gt;
  
    &lt;label for="file"&gt;Filename:&lt;/label&gt;
    &lt;input type="file" name="file" id="file" /&gt;
  
  &lt;input type="submit" value="LOAD ME!"&gt;
  
   &lt;/form&gt;
  </code></pre>
  
  <p>What could be causing this behavior ?</p>