storage property

Map<String, CloudStorage> storage
final

Cloud storages used by the serverpod. By default two storages are set up, public and private. The default storages are using the database, which may not be ideal for larger scale applications. Consider replacing the storages with another service such as Google Cloud or Amazon S3, especially in production environments.

Implementation

final storage = <String, CloudStorage>{
  'public': DatabaseCloudStorage('public'),
  'private': DatabaseCloudStorage('private'),
};