Skip to main content

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

assetNamingStrategy

Default:<a href='/reference/typescript-api/assets/default-asset-naming-strategy#defaultassetnamingstrategy'>DefaultAssetNamingStrategy</a>

Defines how asset files and preview images are named before being saved.

assetStorageStrategy

Default:NoAssetStorageStrategy

Defines the strategy used for storing uploaded binary files.

assetPreviewStrategy

Default:NoAssetPreviewStrategy

Defines the strategy used for creating preview images of uploaded assets.

permittedFileTypes

propertystring[]
Default:image, audio, video MIME types plus PDFs

An array of the permitted file types that may be uploaded as Assets. Each entry should be in the form of a valid unique file type specifier i.e. either a file extension (".pdf") or a mime type ("image/*", "audio/mpeg" etc.).

uploadMaxFileSize

propertynumber
Default:20971520

The max file size in bytes for uploaded assets.

Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page