если делаю не вот так
$.ajax({
url: myajax.url,
type: 'POST',
cache: false,
contentType: false,
processData: false,
data: data,
data: {
action: 'request',
phone: phone,
email: email,
surname: surname,
name: name,
days: days,
money: money,
},
}).done(function(data){
});
}
а вот так
if( typeof files == 'undefined' ) return;
var data = new FormData();
$.each( files, function( key, value ){
data.append( key, value );
});
$.ajax({
url: myajax.url,
type: 'POST',
cache: false,
contentType: false,
processData: false,
data: data,
}).done(function(data){
});
}