find:
Code: [Select]
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
//alert(file.name+" ok"); // handle response. //xhr.responseText
var txt = document.createElement("div");
txt.innerHTML = "<a href='"+file.name+"'>"+file.name+"</a> ok "+file.size/1000+"kB"
document.querySelector('body').appendChild(txt);
}
};
replace with:Code: [Select]
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
//alert(file.name+" ok"); // handle response. //xhr.responseText
var txt = document.createElement("tr");
txt.innerHTML = "<td><a href='" + file.name + "'>" + file.name + "</a></td><td>" + Math.ceil((file.size / 1000) * 100) / 100 + " KB</td><td> OK </td>"
document.querySelector('tbody').appendChild(txt);
}
};
result: