Default uploader used - handles uploading arbitrary data to IPFS
Example
// Can instantiate the uploader with default configuration and your client ID when used in client-side applicationsconst uploader = newStorageUploader();
const clientId = "your-client-id";
const storage = newThirdwebStorage({ clientId, uploader });
// Can instantiate the uploader with default configuration and your secret key when used in server-side applicationsconst uploader = newStorageUploader();
const secretKey = "your-secret-key";
const storage = newThirdwebStorage({ secretKey, uploader });
// Or optionally, can pass configurationconst options = {
// Upload objects with resolvable URLsuploadWithGatewayUrl: true,
};
const uploader = newStorageUploader(options);
const clientId = "your-client-id";
const storage = newThirdwebStorage({ clientId, uploader });