Optional
data?: objectThe asset data. This depends on the asset type. See Asset for asset data depending on the type.
Optional
file?: File | BlobThe file being uploaded.
Optional
filename?: stringThe filename of the uploaded file.
Optional
folder?: AssetThe parent folder asset where the asset should be placed.
Optional
folderId?: numberThe id of the parent folder asset.
Optional
id?: numberIf an asset id is specified then this asset will be updated instead of creating a new asset.
Optional
name?: stringThe name of the asset.
Optional
preload?: booleanWhether to preload the asset. Defaults to true.
Optional
sourceAssetId?: numberThe id of the source asset.
Optional
tags?: string[]The tags of the asset.
Optional
type?: stringThe type of the asset we are uploading. See Asset for available asset types.
Arguments passed when uploading an asset file.