Invalid file type: document

When I try to upload a pdf in the panel I get this error: “Invalid file type: document” I’ve tried multiple different files but none of them seem to work… Images do work though.

The field is in my site.yml and looks like this:

disclaimer:
   label: Disclaimer
   type: files
   max: 1

Can’t seem to find it anywhere in the docs but maybe I’m just looking the wrong way…

All the best wishes for 2022!

Whats inside the file blueprint? It might be restircted to only accepting images. See here:

1 Like

Thanks! Completely overlooked this -_-

Files.yml was only set to accept image. Now I’ve added documents as well and everything works like a charm!

It might make sense to use different file blueprints for different files fields/sections, so that users can only upload certain file types to these fields/sections.