mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 14:30:41 -04:00
Use decodedData to get file size
Co-authored-by: El RIDO <elrido@gmx.net>
This commit is contained in:
parent
d01c37c59d
commit
d15ac590d7
1 changed files with 1 additions and 1 deletions
|
@ -3027,7 +3027,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
||||||
if (typeof fileName !== 'undefined') {
|
if (typeof fileName !== 'undefined') {
|
||||||
attachmentLink.attr('download', fileName);
|
attachmentLink.attr('download', fileName);
|
||||||
|
|
||||||
const fileSize = me.getAttachmentSize(attachmentData);
|
const fileSize = Helper.formatBytes(decodedData.length);
|
||||||
template.append(`(${fileName}, ${fileSize})`);
|
template.append(`(${fileName}, ${fileSize})`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue