X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fstatic%2Fjs%2Fupload.js;h=c253471e1cb234b1da6b269ddd471c838dd38de7;hb=a90ed6c3bebff4cb8d1ef075419e7fab8b1d8bd1;hp=a8c3b9bb8784fb650c4203c4643ee8445b1b26f3;hpb=c61a46be26e6c8acb4cb2efaaf2c815e9b8dec0c;p=citadel.git diff --git a/webcit-ng/static/js/upload.js b/webcit-ng/static/js/upload.js index a8c3b9bb8..c253471e1 100644 --- a/webcit-ng/static/js/upload.js +++ b/webcit-ng/static/js/upload.js @@ -84,7 +84,9 @@ function upload_file(file) { // Add these uploads to the displayed list j_response.forEach((item) => { let new_upl = document.createElement("li"); - new_upl.innerHTML = "Ref: " + item["ref"] + " , Filename: " + item["uploadfilename"] + " , Content-type: " + item["contenttype"] + " , Length: " + item["contentlength"]; + // item["ref"] is what we need + new_upl.innerHTML = `❌` + + item["uploadfilename"] + " (" + item["contenttype"] + ", " + item["contentlength"] + " " + _("bytes") + ")"; document.getElementById("ctdl-upload_list").appendChild(new_upl); });