title: asp.net mvc with jquery ajax cal HttpPostedFileBase file getting null value
body: <pre><code>**Jquery Ajax call sending data to controller**
  
  $("#btncareerssubmimt").click(function () {
          var Name = $("#txtname").val();
   var file = $("#fileresume").val();
   $.ajax({
                  type: "POST",
                  url: '/Footer/sendmail',              
                  data: { Name: Name ,file: file },
                  success: function () {
  
                      $("#simplecareers").html('&lt;p style="color:#74ac12;margin-left:19%;"&gt;Your Request Submitted Successfully&lt;/p&gt;');
                  },
                  error: function (XMLHttpRequest, textStatus, errorThrown) {
  
                      $("#simple-msg").html('&lt;pre&gt;"fail"&lt;/pre&gt;');
  
                  }
              });
  }
  </code></pre>
  
  <p>in aboveo ajax cal iam getting name and file path correctly but when we pass to controller 
  getting name only but file path getting null 
          My Html view</p>
  
  <pre><code> &lt;input type="text" name="txtname" id="txtname" class="form-control" value=""/&gt;
  input type="file" name="file" id="fileresume"  value=""/&gt;
   &lt;input type="submit" value="Upload" id="btncareerssubmimt" class="submit" /&gt;
  
  
  This is my controller
  
    [HttpPost]
          public ActionResult sendmail(string Name ,HttpPostedFileBase fileresume)
          {
  }
  </code></pre>