Skip to content

ImportedAttachment

Unofficial

Imported attachment.

Import:

import type { ImportedAttachment } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ImportedAttachment

Properties

PropertyTypeDescription
datanull | Promise<ArrayBuffer | null>Promise that resolves to the attachment file content, or to null when the file cannot be read. null itself for a folder, and when the content was not requested.
extensionstringAn attachment file extension. Empty for a folder.
filepath?stringAn attachment file path. Absent for an image read from the clipboard, and empty when the dropped file has no path.
isDirectory?booleanWhether the attachment is a folder dropped from the file system (desktop only).
namestringAn attachment file name.