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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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})`);
}