Formdata JQuery Ajax PHP
//set your ajax url here
//$url =
$(document).on('submit', '#form', function(e){
e.preventDefault();
$.ajax({
type: 'POST',
url: $url,
data: new FormData(this),
dataType: 'json',
contentType: false,
processData:false,//this is a must
success: function(response){
//statements on success
}
});
});
Anime Freak