title: Is it possible to pass a File from a File Input to a Controller using jQuery?
body: <p>I'm attempting to pass a file to my Controller as a HttpPostedFileBase so I can parse through the file and pass information back to the page. For example, I want to allow a user to import a vCard, and have it automatically populate a Contact Creation Form PartialView.</p>
  
  <p>I'd like to do this by passing in the File, populating my model and then return a PartialView of the Form to display on the page. I've attempted jQuery like below, but I can never get my HttpPostedFileBase to pass properly (always null). Keeping in mind that I need to access the InputStream of the file once posted.</p>
  
  <pre><code>var file = "files=" + $("#fileInput").files[0];
  $.post("/Contacts/UploadContact/", file, function (returnHtml) {
      alert(returnHtml);
      $("#contactContainer").html(returnHtml);
  });
  </code></pre>
  
  <p>Is it possible to post a file to my Controller as a HttpPostedFileBase via jQuery?</p>