Storage SDK
The ThirdwebSDK
class includes storage
out of the box, available by using sdk.storage
:
sdk.storage.download
sdk.storage.downloadJSON
sdk.storage.resolveScheme
sdk.storage.upload
sdk.storage.uploadBatch
The @thirdweb-dev/storage
Package
Storage is also available as it’s own package, separate from the @thirdweb-dev/sdk
package.
This is useful if you want to use storage without the rest of the SDK.
Once installed, import and instantiate the ThirdwebStorage
class:
Configuration
Customize the behavior of the ThirdwebStorage
class by passing in a custom ThirdwebStorageConfig
object.