title: Update only partial view when submit button for file upload is clicked
body: <p>I have a partial view that allows users to submit files.</p>
  
  <pre><code>&lt;form action="Attachments" method="post" enctype="multipart/form-data" target="_self"&gt;
      &lt;div&gt;
          &lt;label style="text-align: left;"&gt;Add File:&lt;/label&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;input type="file" name="file" id="file" style="width: 275px;" /&gt;
      &lt;/div&gt;
      &lt;div style="text-align: right;"&gt;
          &lt;input type="submit" value="Add"/&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This calls the AttachmentsController method for HTTPPost</p>
  
  <pre><code>[HttpPost]
  public ActionResult Index(HttpPostedFileBase file)
  {
  
      if (file.ContentLength &gt; 0)
      {
          var fileName = Path.GetFileName(file.FileName);
          var path = Path.Combine("C:\\Attachments", fileName);
          file.SaveAs(path);
  
          return AddAttachment(fileName);
      }
  
      return RedirectToAction("Failed", "Attachments");
  }
  </code></pre>
  
  <p>The addAttachment returns "return RedirectToAction("Index", "Attachments");"
  After all this is done to add the attachment the whole screen is refreshed and I want only the partial view for adding attachments refreshed. How can I accomplish this!?</p>