<!DOCTYPE html><htmlclass="default"lang="en"data-base="../"><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>BAttachment | trilium</title><metaname="description"content="Documentation for trilium"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script><scriptasyncsrc="../assets/hierarchy.js"id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os";document.body.style.display="none";setTimeout(()=>window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><ahref="../index.html"class="title">trilium</a><divid="tsd-toolbar-links"></div><buttonid="tsd-search-trigger"class="tsd-widget"aria-label="Search"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"aria-hidden="true"><usehref="../assets/icons.svg#icon-search"></use></svg></button><dialogid="tsd-search"aria-label="Search"><inputrole="combobox"id="tsd-search-input"aria-controls="tsd-search-results"aria-autocomplete="list"aria-expanded="true"autocapitalize="off"autocomplete="off"placeholder="Search the docs"maxLength="100"/><ulrole="listbox"id="tsd-search-results"></ul><divid="tsd-search-status"aria-live="polite"aria-atomic="true"><div>Preparing search index...</div></div></dialog><ahref="#"class="tsd-widget menu"id="tsd-toolbar-menu-trigger"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"aria-hidden="true"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"aria-label="Breadcrumb"><li><ahref="../modules/Backend_Script_API.html">Backend Script API</a></li><li><ahref="../modules/Backend_Script_API._internal_.html"><internal></a></li><li><ahref=""aria-current="page">BAttachment</a></li></ul><h1>Class BAttachment</h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>Attachment represent data related/attached to the note. Conceptually similar to attributes, but intended for
larger amounts of data and generally not accessible to the user.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L55">src/becca/entities/battachment.ts:55</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><h3class="tsd-anchor-link"id="datecreated"><codeclass="tsd-tag">Optional</code><span>date<wbr/>Created</span><ahref="#datecreated"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">dateCreated</span><spanclass="tsd-signature-symbol">?:</span><spanclass="tsd-signature-type">string</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html">AbstractBeccaEntity</a>.<ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html#datecreated">dateCreated</a></p><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/abstract_becca_entity.ts#L27">src/becca/entities/abstract_becca_entity.ts:27</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><h3class="tsd-anchor-link"id="datemodified"><codeclass="tsd-tag">Optional</code><span>date<wbr/>Modified</span><ahref="#datemodified"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">dateModified</span><spanclass="tsd-signature-symbol">?:</span><spanclass="tsd-signature-type">string</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html">AbstractBeccaEntity</a>.<ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html#datemodified">dateModified</a></p><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/abstract_becca_entity.ts#L28">src/becca/entities/abstract_becca_entity.ts:28</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><h3class="tsd-anchor-link"id="isdecrypted"><codeclass="tsd-tag">Optional</code><span>is<wbr/>Decrypted</span><ahref="#isdecrypted"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">isDecrypted</span><spanclass="tsd-signature-symbol">?:</span><spanclass="tsd-signature-type">boolean</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L56">src/becca/entities/battachment.ts:56</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><h3class="tsd-anchor-link"id="isprotected"><codeclass="tsd-tag">Optional</code><span>is<wbr/>Protected</span><ahref="#isprotected"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">isProtected</span><spanclass="tsd-signature-symbol">?:</span><spanclass="tsd-signature-type">boolean</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html">AbstractBeccaEntity</a>.<ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html#isprotected">isProtected</a></p><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/abstract_becca_entity.ts#L32">src/becca/entities/abstract_becca_entity.ts:32</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><h3class="tsd-anchor-l
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L47">src/becca/entities/battachment.ts:47</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><h3class="tsd-anchor-link"id="position"><codeclass="tsd-tag">Optional</code><span>position</span><ahref="#position"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">position</span><spanclass="tsd-signature-symbol">?:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L52">src/becca/entities/battachment.ts:52</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><h3class="tsd-anchor-link"id="role"><span>role</span><ahref="#role"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">role</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">string</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L48">src/becca/entities/battachment.ts:48</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><h3class="tsd-anchor-link"id="title"><span>title</span><ahref="#title"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">title</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">string</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L50">src/becca/entities/battachment.ts:50</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><h3class="tsd-anchor-link"id="type"><codeclass="tsd-tag">Optional</code><span>type</span><ahref="#type"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">type</span><spanclass="tsd-signature-symbol">?:</span><spanclass="tsd-signature-type">"image"</span><spanclass="tsd-signature-symbol">|</span><spanclass="tsd-signature-type">"file"</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/battachment.ts#L51">src/becca/entities/battachment.ts:51</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><h3class="tsd-anchor-link"id="utcdatecreated"><span>utc<wbr/>Date<wbr/>Created</span><ahref="#utcdatecreated"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"aria-hidden="true"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">utcDateCreated</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">string</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html">AbstractBeccaEntity</a>.<ahref="Backend_Script_API._internal_.AbstractBeccaEntity.html#utcdatecreated">utcDateCreated</a></p><ul><li>Defined in <ahref="https://github.com/TriliumNext/Notes/blob/84883a6e267a4cfd7d26a14ec43a31d53c76e99b/src/becca/entities/abstract_becca_entit