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:

ParameterTypeDescription
namestringThe attachment name.
extensionstringThe file extension.
dataArrayBufferThe binary content.

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