mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
added contentLength to note entity
This commit is contained in:
@@ -48,10 +48,7 @@ async function importFile(taskContext, file, parentNote) {
|
||||
isProtected: parentNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
|
||||
type: 'file',
|
||||
mime: mimeService.getMime(originalName) || file.mimetype,
|
||||
attributes: [
|
||||
{ type: "label", name: "originalFileName", value: originalName },
|
||||
{ type: "label", name: "fileSize", value: size }
|
||||
]
|
||||
attributes: [{ type: "label", name: "originalFileName", value: originalName }]
|
||||
});
|
||||
|
||||
taskContext.increaseProgressCount();
|
||||
|
||||
Reference in New Issue
Block a user