AssetOptions

AssetOptions

AssetOptions

The AssetOptions define how assets (images and other files) are named and stored, and how preview images are generated.

Note: If you are using the AssetServerPlugin, it is not necessary to configure these options.

Signature

interface AssetOptions {
  assetNamingStrategy: AssetNamingStrategy;
  assetStorageStrategy: AssetStorageStrategy;
  assetPreviewStrategy: AssetPreviewStrategy;
  uploadMaxFileSize?: number;
}

Members

assetNamingStrategy

property
default:
DefaultAssetNamingStrategy
Defines how asset files and preview images are named before being saved.

assetStorageStrategy

property
default:
NoAssetStorageStrategy
Defines the strategy used for storing uploaded binary files.

assetPreviewStrategy

property
default:
NoAssetPreviewStrategy
Defines the strategy used for creating preview images of uploaded assets.

uploadMaxFileSize

property
type:
number
default:
20971520
The max file size in bytes for uploaded assets.