AssetUploadArguments: {
    data?: object;
    file?: File | Blob;
    filename?: string;
    folder?: Asset;
    folderId?: number;
    id?: number;
    name?: string;
    preload?: boolean;
    sourceAssetId?: number;
    tags?: string[];
    type?: string;
}

Arguments passed when uploading an asset file.

Type declaration

  • Optionaldata?: object

    The asset data. This depends on the asset type. See Asset for asset data depending on the type.

  • Optionalfile?: File | Blob

    The file being uploaded.

  • Optionalfilename?: string

    The filename of the uploaded file.

  • Optionalfolder?: Asset

    The parent folder asset where the asset should be placed.

  • OptionalfolderId?: number

    The id of the parent folder asset.

  • Optionalid?: number

    If an asset id is specified then this asset will be updated instead of creating a new asset.

  • Optionalname?: string

    The name of the asset.

  • Optionalpreload?: boolean

    Whether to preload the asset. Defaults to true.

  • OptionalsourceAssetId?: number

    The id of the source asset.

  • Optionaltags?: string[]

    The tags of the asset.

  • Optionaltype?: string

    The type of the asset we are uploading. See Asset for available asset types.