Set a template for banner images only

How can I set a file template for images uploaded to just the Hero Banners on my website?

Currently, I am trying the below but it’s not picking up the file template?

columns:
  left:
    width: 2/3
    fields:
      banner:
        type: files
        template: hero-banner
        layout: cards
...

I have a yml file in files called ‘hero-banner.yml’ with the following code:

title: Hero banner

accept:
  mime: image/*
  minwidth: 1200

fields:
  title:
    type: text
    width: 1/4
  caption:
    type: textarea
    width: 2/2
  link:
    type: url
    width: 1/4
  alt:
    type: text
    width: 1/4

Any guidance would be great

The template property sets the file template in a files section.

For a files field, you set the template with the upload property, see files field documentation.

Depending on your use case, using a files section instead of a files field might be an option. A files field is nothing else than a select field specialized in files.