Hierarchy

  • ImageField

Methods

create

  • create(name: string, body: ArrayBuffer): Promise<ImageItem>
  • The method creates an image in the process context.

    Parameters

    • name: string
    • body: ArrayBuffer

    Returns Promise<ImageItem>

createFromLink

  • createFromLink(name: string, url: string): Promise<ImageItem>
  • The method uploads an image from an external source to the process context.

    Parameters

    • name: string
    • url: string

    Returns Promise<ImageItem>

fetchAll

  • Request all associated images.

    If a field stores multiple image links, you can request all of them at once:

    const images = await Context.fields.images.fetchAll();
    

    Returns Promise<ImageItem[]>