Doing it this way:
var uploadFile = $("#documents-files").data("kendoUpload");
var file2 = uploadFile.getFiles();
formData.append('files2',file2[0]);
$.ajax({ url: 'foo.php', type: 'POST', data: formData, async: false, cache: false, contentType: false, enctype: 'multipart/form-data', processData: false, success: function (response) { console.log(response); } });
And in PHP server var_dump($_POST) :
array(1) {["files2"]=>string(15) "[object Object]"}
And $_FILES is empty.
If I send file in standard way, WITHOUT KendoUpload widget
var files = document.getElementById('documents-files');
var file = files.files[0];
it works, superglobal $_FILES is filled with file data.