StorageDownloader
Default downloader used - handles downloading from all schemes specified in the gateway URLs configuration.
// Can instantiate the downloader with the default gateway URLsconst downloader = new StorageDownloader(); // client id if used in client-side applicationsconst clientId = "your-client-id";const storage = new ThirdwebStorage({ clientId, downloader }); // secret key if used in server-side applicationsconst secretKey = "your-secret-key";const storage = new ThirdwebStorage({ secretKey, downloader });
function constructor(
Download arbitrary data from any URL scheme
function download( uri: string, attempts: number,): Promise<Response>;
let DEFAULT_MAX_RETRIES: number;
let DEFAULT_TIMEOUT_IN_SECONDS: number;