From d15ac590d708883c758fb72438e8663ad5478235 Mon Sep 17 00:00:00 2001 From: Mikhail Romanov <42250412+Ribas160@users.noreply.github.com> Date: Sat, 28 Jun 2025 13:47:43 +0300 Subject: [PATCH] Use decodedData to get file size Co-authored-by: El RIDO --- js/privatebin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 53a6adbc..639fff54 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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})`); }