Displaying each one as a link definitely makes it stand out from the message text.
Display the size of each attachment -- _(bytes) is already in the webcit-classic translations
Downloads are working, but the wrong file name is derived
#include <sys/un.h>
#include <sys/poll.h>
#include <time.h>
+#include <sys/time.h>
#include <string.h>
#include <pwd.h>
#include <errno.h>
outmsg += "<ul>";
}
display_attachments += 1;
- outmsg += "<li><i class=\"fa fa-paperclip\"></i> " + msg.part[r].partnum + ": " + msg.part[r].filename + "</li>";
+ outmsg += "<li>"
+ + "<a href=\"/ctdl/r/" + escapeHTMLURI(current_room) + "/" + msgnum + "/" + msg.part[r].partnum + "\">"
+ + "<i class=\"fa fa-paperclip\"></i> " + msg.part[r].partnum + ": " + msg.part[r].filename
+ + " (" + msg.part[r].len + " " + _("bytes") + ")"
+ + "</a>"
+ + "</li>";
}
}
if (display_attachments > 0) {