Issues with file blueprint

Hi all,

I have the following file blueprint in site/blueprints/files/audio.yml

title: Audio

accept:
  mime: audio/mpeg
  extension: mp3
  maxsize: 4000

fields:
  title:
    label: Title
    type: text
    required: true

  artist:
    label: Artist
    type: text

  album:
    label: Album
    type: text

  duration:
    label: Duration
    type: text
    width: 1/2

  description:
    label: Description
    type: textarea
    size: small

Then in my site.yml blueprint, I want to call the following template file by writing :

playlist:
    label: Playlist
    type: fields
    fields: 
      audioFiles:
        label: Audio tracks
        type: files 
        template: audio
        layout: cards

but when I go to my panel to upload, first I can upload any type of file, of any size and my blueprint is not even applied.

What am I doing wrong here ?

Thanks in advance for your help !

A files field doesn’t have a template option, see docs: http://getkirby.test/docs/reference/panel/fields/files#upload-options

Ok I understood. I should have used uploads: audio instead, in order to assign the custom audio blueprint to the file.

Thank you !