Uploading code file in panel not working (lottie, json Animation)

Hey.
I have the problem that the panel won’t allow me to upload a json file into my gallery.
In the frontend, it will be displayed as an animated svg.

I already had an Issue with these files. You can view it here – How to integrate Lottie SVG Animations?

I tried accept in the blueprint for field type: files

If no type restrictions ( extension , mime or type ) are defined in the file blueprint, Kirby will limit the accepted uploads to the types image , document , archive , audio and video by default.

Since json is neither of those. I would go with accept: true to allow all files. But that makes not difference at all. Do I use it wrong?

sections:
  gallery:
    label: Select files..
    type: files
    accept: true
    size: smale
    info: "{{ file.dimensions }}"
    layout: cards
    template: caseImage
    image:
      ratio: 1/1
      back: white

Have you allowed these files in caseimage.yml? Don’t use camelCase for file names… Your link is pointing to something unrelated?

Oh, thanks.
Was not aware that this accept rule need to be on the file blueprint as well. I am not sure if it is in the documentation, or is it?

Anyway. it works is if i do it like that

case.yml:

sections:
  gallery:
    label: Select files..
    type: files
    accept: true
    size: smale
    info: "{{ file.dimensions }}"
    layout: cards
    template: caseimage
    image:
      ratio: 1/1
      back: white

caseimage.yml:

title: File
accept: true

The accept property can only be set in the file blueprint: File blueprint | Kirby CMS

File type upload is restricted to image , document , archive , audio and video by default since 3.5, unless you set the accept file blueprint option.