ImportedAttachment
Unofficial
Imported attachment.
Import:
import type { ImportedAttachment } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface ImportedAttachmentProperties
| Property | Type | Description | |
|---|---|---|---|
| data | null | 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. | |
| extension | string | An attachment file extension. Empty for a folder. | |
| filepath? | string | An attachment file path. Absent for an image read from the clipboard, and empty when the dropped file has no path. | |
| isDirectory? | boolean | Whether the attachment is a folder dropped from the file system (desktop only). | |
| name | string | An attachment file name. |