hello there is an AJAX request
function askquestion() { if (inask) return false; var data = new FormData(); data.append('image', $('.uploadimg:eq(0) input').prop('files')[0]); data.append('image', $('.uploadimg:eq(1) input').prop('files')[0]); $.ajax({ url: 'здесь мой сайт', type: 'post', cache: false, contentType: false, processData: false, data: data, success: function(data) { // } }); } Here is the php code:
print_r($_FILES);
and as seen in the image, the ajax request successfully transmitted 2 images, but php sees only 1, what is the problem with?

data.append('image[]'- Vitaly