StorageDownloader

Default downloader used - handles downloading from all schemes specified in the gateway URLs configuration.

Example

// Can instantiate the downloader with the default gateway URLs
const downloader = new StorageDownloader();
// client id if used in client-side applications
const clientId = "your-client-id";
const storage = new ThirdwebStorage({ clientId, downloader });
// secret key if used in server-side applications
const secretKey = "your-secret-key";
const storage = new ThirdwebStorage({ secretKey, downloader });

Methods

Properties