Files not showing up in files section

Yahoi,

I have a file template like this:

blueprints/files/intern.yml

fields:
  filetitle:
    label: Titel
    type: text

accept:
    extension: jpg, png, webp, pdf, csv, xls, xlsv, xlsx, xltx, xlt, xml, txt, docx, doc, xltm, svg, xlsm

And within the page blueprint it works somewhat fine, uploads work, but pdfs and some excel file types don’t show up.

This is the file section in my page blueprint:

files:
    type: files
    headline: Dateien
    template: intern
    sortBy: filename asc

Am I missing something to display the files?

You wrote:

But shouldn’t it be:

fields:
  filetitle:
    label: Titel
    type: files

accept:
    extension: jpg, png, webp, pdf, csv, xls, xlsv, xlsx, xltx, xlt, xml, txt, docx, doc, xltm, svg, xlsm

At least that is what I understood from the files field docs.

Your section looks alright. Have you maybe added the template at a later point in time so that the template wasn’t assigned yet?

Now I see what the issue was. Thanks for the hint @texnixe!
I’ve been using the pagebuilder plugin as well and had created a download-block for my customer.

Turns out they used that block to upload the files instead of selecting them afterwards.
I just had to assign the template to the download block via uploads: intern

Is there a way for me to assign a template to the files after the fact?
Because right now it seems like there are a lot of pages that’d need to have the files reuploaded to receive a new template.

Your best bet would be to go through the files programmatically and assign the template. Question is if you need the section if your users prefer uploading via the field.