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;
permittedFileTypes?: string[];
uploadMaxFileSize?: number;
}
Members
assetNamingStrategy
assetStorageStrategy
assetPreviewStrategy
permittedFileTypes
string[]
image, audio, video MIME types plus PDFs
uploadMaxFileSize
number
20971520