ThirdwebStorage.download() method
Downloads arbitrary data from any URL scheme.
Signature:
download(url: string): Promise<Response>;
Parameters
Parameter | Type | Description |
---|---|---|
url | string | The URL of the data to download |
Returns:
Promise<Response>
The response object fetched from the resolved URL
Example
const uri = "ipfs://example";
const data = await storage.download(uri);