title: FileUpload and Retrieval
body: <p>I am trying to make a file upload page where users can upload an image or document to it and it to show up in a list fashion, I have managed to upload the image into a folder I created in my Project, but I have no idea how I'm meant to retrieve it, every time I try and search for it I get useless posts which don't really fit my question.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    //
      // GET: /Upload/
      [HttpPost]
      public ActionResult Index(HttpPostedFileBase file)
      {
  
          if (file.ContentLength &gt; 0)
          {
              var fileName = Path.GetFileName(file.FileName);
              var path = Path.Combine(Server.MapPath("~/Images/Uploads"), fileName);
              file.SaveAs(path);
              System.Diagnostics.Debug.WriteLine(path);
  
          }
  
          Server.MapPath("~/App_Data/Uploads/");
          return RedirectToAction("Index", file);
      }
  </code></pre>