I have an ajax query to send a form "have an upload file input" to a php file,
to send the file a formData like that :
var formData = new FormData();
var file = $("#logo").get(0).files[0];
formData.append("logo", file);
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 :
{name:name, email:email, password:password, auth:auth}
so I'm asking how to send the formData + this object as data in ajax here :
$.ajax({
data : ...... ?
});