'Invalid model type: .' when trying to fill a file's field

Hey Kirby Forum,

I’m intending to use file blueprints to organize different types of files on my site. One of those is the following

title: Image

accept:
  mime: image/jpeg, image/png, image/svg+xml

fields:
  meta: fields/image-meta

the meta field is a simple add-on for saving the alt text for an image:

type: group
fields:
  alt:
    label: Alternativer Text
    type: text
    width: 1/2
    required: true

All files are getting saved in a page called files that acts as a folder for all files.

So far the setup. Now, if I upload an image on one of my pages with the template set to the shown image blueprint I can’t type any alt text into the corresponding input field. Whenever I try to input a single char I’m getting the message ‘Invalid model type: .’.

Also there’s this error logged to the console in addition to a request with a 400 status code.

Does anyone know how to fix this and make the field for the alt tag functional?

I think that is because your folder is called files (at least I’m getting the same error when trying to reproduce this with a folder called files). Try renaming it to something else.

Thanks a lot @texnixe! It’s working as expected now. Have a great day :slightly_smiling_face: