Skip to content

RESTFileAttachment

Defined in: packages/rest/src/index.ts:117

A file attachment sent as part of a multipart REST request.

optional contentType?: string

Defined in: packages/rest/src/index.ts:125


data: ArrayBuffer | Uint8Array<ArrayBufferLike> | Blob | PromiseLike<ArrayBuffer | Uint8Array<ArrayBufferLike> | Blob>

Defined in: packages/rest/src/index.ts:120

The bytes, or a promise of them (read just before the request is sent).


name: string

Defined in: packages/rest/src/index.ts:118