title: send formData and other object from ajax to php
body: <p>I have an ajax query to send a form "have an upload file input" to a php file,</p>
  
  <p>to send the file a formData like that : </p>
  
  <pre><code>var formData = new FormData();
  var file = $("#logo").get(0).files[0];
  formData.append("logo", file);
  </code></pre>
  
  <p>and I have other input values that I wanna send with it which is name , password,email ... and here is the object I created for that : </p>
  
  <pre><code>{name:name, email:email, password:password, auth:auth}
  </code></pre>
  
  <p>so I'm asking how to send the formData + this object as data in ajax here :</p>
  
  <pre><code>$.ajax({
      data :  ...... ?
  });
  </code></pre>