addCloudStorage method

void addCloudStorage(
  1. CloudStorage cloudStorage
)

Adds a CloudStorage to the Serverpod. You can use this method to override the default DatabaseCloudStorage to use S3 or Google Cloud Storage. E.g. see the serverpod_cloud_storage_s3 pub package.

Implementation

void addCloudStorage(CloudStorage cloudStorage) {
  storage[cloudStorage.storageId] = cloudStorage;
}