Hierarchy
- ImageField
Methods
create
-
The method creates an image in the process context.
Parameters
-
name: string
-
body: ArrayBuffer
Returns Promise<ImageItem>
-
createFromLink
-
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[]>
Description of the TImage type field