Skip to content

App.saveAttachment method

App › saveAttachment

Unofficial

Save attachment at default attachments location

Signature:

saveAttachment(name: string, extension: string, data: ArrayBuffer): Promise<TFile>

Parameters:

Parameter Type Description
name string The attachment name.
extension string The file extension.
data ArrayBuffer The binary content.

Returns: Promise<TFile>A promise that resolves to the saved file.