Assets Component
The assets
component handles the storage of files that can be up- or downloaded through an NS JEE application.
Asset Types
By default the assets
component supports three types of assets.
Internal assets
The internal asset type (Asset.type == "INTERNAL"
) represents assets that are stored by the underlying database used by the application.
These assets are handed off to the data layer for processing and are typically stored as BLOBs in an SQL database.
File assets
The file asset type (Asset.type == "FILE"
) represents assets that are stored on the filesystem of the application.
The directory where uploaded files are stored is defined in a ParamTargetValue with parameter name fileUploadDirUri
and target default
.
Remote assets
The file asset type (Asset.type == "REMOTE"
) represents assets that are stored at a remote location.
A String field RemoteAsset.url
contains an URL to the location where the asset can be accessed.