AttachmentsApi.list()
Embedded files. Without the
extract feature every name is ''. Needs no feature.methodReadingsince 1.0.0
Signature
list(): Promise<AttachmentInfo[]>
Returns
Promise<AttachmentInfo[]> Each { index, name, size }: the index to pass to data() / delete(), the name as stored in the file (untrusted input), and the size in bytes (0 when the entry has no file stream).
Throws
DOCUMENT_CLOSED— the document has been closed.
Example
TypeScript
const files = await doc.attachments.list();