Image upload and single feature image selection in the same blueprint?

Hey all, have been finding these forum extremely useful as I learn Kirby, but I am at a frustrating loss when navigating the difference between fields and sections. All i want is on the right side of this blueprint for there to be a field where images are uploaded and one where the editor can choose a featured image out of the ones that have been uploaded. With my current code i can do such but the upload files field doesn’t show up, I don’t understand the way fields and sections are supposed to be mixed together :frowning:

title: Project

columns:
  # Year and description text

 main:
    width: 2/3
    sections:
      content:
        type: fields
        fields:
          year:
            label: Year
            type: text
          text:
            label: Text
            type: textarea


  sidebar:
    width: 1/3
    fields:
      # select featured image in home page
      featured:
        type: files
        headline: Featured Image
        
    # upload images
    sections:
      files:
        type: fields
          fields:
            type: files
            headline: Files

You can’t mix sections and fields in a column without putting the fields into a fields section:

  sidebar:
    width: 1/3
    sections:
      # we need a field section here
      fieldsection:
        type: fields
        fields:
         # a files field to select an image
          featured:
            label: Featured Image # fields have labels, not headlines
            type: files
        
      # upload images => this should then be a files section
      files:
        type: files
        headline: Files
2 Likes

Thank you!!!

On the differences between files sections and files fields: Is it possible to make Upload default and only option in files field?