From: Art Cancro Date: Wed, 4 Oct 2023 21:34:10 +0000 (-0400) Subject: ❌ marks the spot X-Git-Tag: v997~127 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a90ed6c3bebff4cb8d1ef075419e7fab8b1d8bd1 ❌ marks the spot --- 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); });