title: How we can send JSON and Image file in AJax Request?
body: <p>i m facing problem with ajax request if i want to send image and json data in ajax request. I m getting images and Json Data both. But the json data is not binding automatically.</p>
  
  <pre><code>$("#btn").click(function () {
          var uploadfile =$("#uploadfile").files[0];
          var student = {
              Id: 1,
              Name:"ABC"
          }
          var formdata = new FormData();
          formdata.append("attachments", uploadedfile)
          formdata.append("model",JSON.stringify(student))
          $.ajax({
              type: 'POST',
              url: '@Url.Action("Test")',
              contentType: false,
              processData: false,
              cache: false,
              data: formdata,
              success: function (data) {
  
              }
          });
      });
  </code></pre>