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