Image field
Select or upload images from media.
Use for cover images, thumbnails, galleries, logos.
Options
| Key | Description |
|---|---|
media |
Named media config to use (e.g. "images"). |
path |
Default browsing folder (e.g. "blog"). |
multiple |
Allow multiple images (e.g. { max: 6 }). |
extensions |
Allowed image extensions (e.g. ["jpg", "png", "webp"]). |
categories |
Allowed image categories. Values: image. |
unique |
If true, disallows duplicate image paths when multiple is enabled. |
rename |
If true, uploaded files get a random filename plus the original extension. |
Example
- name: gallery
type: image
options:
rename: true
multiple:
max: 6
extensions: [jpg, png, webp]