mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
Use decodedData to get file size
Co-authored-by: El RIDO <elrido@gmx.net>
This commit is contained in:
+1
-1
@@ -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})`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user