Skip to content
Class

AttachedFile ​

A file attached to a media file.

Used by ​

Constructor ​

ts
constructor(
	data: Uint8Array,
	mimeType?: string,
	name?: string,
	description?: string,
): AttachedFile;

Creates a new AttachedFile.

Properties ​

data ​

ts
data: Uint8Array;

The raw file data.

description ​

ts
description?: string;

A description of the file.

mimeType ​

ts
mimeType?: string;

An RFC 6838 MIME type (e.g. image/jpeg, image/png, font/ttf, etc.)

name ​

ts
name?: string;

The name of the file.

Released under the Mozilla Public License 2.0.