Restrict amount of images that can be uploaded

Hello,

i would like to limit the number of images that can be uploaded. To exactly one.

How could i do that? Is there a blueprint setting for this?

I am using KQL to query this files later and getting problems, if the user has uploaded more than one file. If there is no way of resticting the upload-count: is there a way to restrict the count of the images, when asking the api for this?

Via blueprint:

Min/Max: Files | Kirby CMS

fields:
  downloads:
    label: Select files...
    type: files
    min: 1
    max: 3

Limit to one: Files | Kirby CMS

fields:
  downloads:
    label: Select files...
    type: files
    multiple: false
1 Like

For files sections it’s min/max:

Note that these limits apply per field/section, not per page.

1 Like