Verified Commit 0d12deed authored by Luc Didry's avatar Luc Didry

Show size of files contained in zip

parent cf1fc627
Pipeline #128574 passed with stages
in 2 minutes and 56 seconds
......@@ -130,7 +130,7 @@ function spawnWebsocket(pa) {
.then(function (zip) {
var innerHTML = ['<h3>Zip content:</h3><ul>'];
zip.forEach(function (relativePath, zipEntry) {
innerHTML.push('<li>', zipEntry.name, '</li>');
innerHTML.push('<li>', zipEntry.name, ' (', filesize(zipEntry._data.uncompressedSize, {base: 10}), ')</li>');
});
innerHTML.push('</ul>');
pbd.append(innerHTML.join(''));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment