1.7 KiB
Vendored
Attachments
A note in Trilium can own one or more attachments, which can be either images or files. These attachments can be displayed or linked within the note that owns them.
This can be especially useful to include dependencies for your scripts. The Weight Tracker shows how to use chartjs which is attached to the script note.
Each note exclusively owns its attachments, meaning attachments cannot be shared or linked from one note to another. If an attachment link is copied to a different note, the attachment itself is duplicated, and the copies are managed independently thereafter.
Attachments, especially image files, are the recommended method for embedding visuals in notes. It is important to link image attachments within the text of the owning note; otherwise, they will be automatically deleted after a configurable timeout period if not referenced.
Converting notes to attachments
File notes can be easily converted to attachments of the parent note.
To do so:
- For a single note, press the context menu from the Note buttons and select Convert into attachment.
- For multiple notes, select the given notes in the Note Tree, right click → Advanced → Convert to attachment.
Attachment previews
Attachments share the same content preview for images, videos, PDFs, etc. as the File note type.