cloudFile

The cloudFile (a.k.a. fileLink) API first appeared in Thunderbird 64, and was uplifted to Thunderbird 60.4 ESR.

From Thunderbird 68.2.1 (Thunderbird 71 beta), an extension can choose to receive data for upload as a File object rather than as an ArrayBuffer. You should specify which you want as the default may change in a future version.

The DropBox Uploader sample extension uses this API.

Manifest file properties

[cloud_file]

(object)

management_url

(string)

A page for configuring accounts, to be displayed in the preferences UI.

name

(string)

Name of the cloud file service.

[data_format]

(string)

– [Added in TB 68.2.1]

Determines the format of the data argument in onFileUpload.

Supported values:

ArrayBuffer

File

[new_account_url]

(string) Deprecated.

This property was never used.

[service_url]

(string)

URL to the web page of the cloud file service.

[settings_url]

(string) Deprecated.

A page for configuring accounts, this is obsolete after Thunderbird 60.

Note

A manifest entry named cloud_file is required to use cloudFile.

Functions

getAccount(accountId)

Retrieve information about a single cloud file account

Parameters

accountId

(string)

Unique identifier of the account

Return type (Promise)