# Attachments
A [note](../Notes.md) 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](../../Scripting.md). The <a class="reference-link" href="../../Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker.md">Weight Tracker</a> shows how to use [chartjs](https://chartjs.org/) 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.

## Types of attachments

There are two different types of attachment:

*   _User content_, representing files or images that are uploaded and part of the content of the note.
*   _System attachments_ which are used internally by Trilium and can be of multiple types, including:
    *   <a class="reference-link" href="../../Collections.md">Collections</a> to store information about views such as the column information for the <a class="reference-link" href="../../Collections/Kanban%20Board.md">Kanban Board</a>.
    *   Icons and cover images for <a class="reference-link" href="../../Note%20Types/Text/Link%20Previews.md">Link Previews</a>.
    *   Debug information for some importers such as <a class="reference-link" href="../Import%20%26%20Export/Importing%20data%20from%20other%20applications/Microsoft%20OneNote.md">Microsoft OneNote</a> (only if the debug flag was enabled at import time).

The system attachments are displayed at the end of the attachments list, in a dedicated section (_Generated by Trilium_).

## Converting notes to attachments

<a class="reference-link" href="../../Note%20Types/File.md">File</a> notes can be easily converted to attachments of the parent note.

To do so:

*   For a single note, press the context menu from the <a class="reference-link" href="../UI%20Elements/Note%20buttons.md">Note buttons</a> and select _Convert into attachment_.
*   For multiple notes, select the given notes in the <a class="reference-link" href="../UI%20Elements/Note%20Tree.md">Note Tree</a>, right click → Advanced → Convert to attachment.

## Attachment previews

Attachments share the same content preview for images, videos, PDFs, etc. as the <a class="reference-link" href="../../Note%20Types/File.md">File</a> note type.