mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Attachments: more correct file size
This commit is contained in:
@@ -383,8 +383,8 @@ function _prepareDocData(source: AttachmentDraftSource, input: Readonly<Attachme
|
||||
let fileTitle = _lowCollisionRefString(mayBeImage ? 'Image' : 'File', 4);
|
||||
let fileCaption = '';
|
||||
const fileMeta: DMessageDocPart['meta'] = {
|
||||
srcFileName: source.fileWithHandle.name,
|
||||
srcFileSize: input.dataSize,
|
||||
srcFileName: source.fileWithHandle.name || undefined,
|
||||
srcFileSize: source.fileWithHandle.size || input.dataSize,
|
||||
};
|
||||
|
||||
switch (source.origin) {
|
||||
|
||||
Reference in New Issue
Block a user