Use decodedData to get file size

Co-authored-by: El RIDO <elrido@gmx.net>
This commit is contained in:
Mikhail Romanov
2025-06-28 13:47:43 +03:00
committed by GitHub
parent d01c37c59d
commit d15ac590d7
+1 -1
View File
@@ -3027,7 +3027,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
if (typeof fileName !== 'undefined') {
attachmentLink.attr('download', fileName);
const fileSize = me.getAttachmentSize(attachmentData);
const fileSize = Helper.formatBytes(decodedData.length);
template.append(`(${fileName}, ${fileSize})`);
}