# Invalid file type: document

**URL:** <https://forum.getkirby.com/t/invalid-file-type-document/24359>\
**Category:** Questions\
**Tags:** v3\
**Created:** [December 31, 2021, 9:48am UTC](https://forum.getkirby.com/t/invalid-file-type-document/24359 "2021-12-31T09:48:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![afplaktape](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@afplaktape](https://forum.getkirby.com/u/afplaktape)\
**Post date:** [December 31, 2021, 9:48am UTC](https://forum.getkirby.com/t/invalid-file-type-document/24359/1 "2021-12-31T09:48:29Z")

</div>

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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [December 31, 2021, 9:53am UTC](https://forum.getkirby.com/t/invalid-file-type-document/24359/2 "2021-12-31T09:53:46Z")

</div>

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

> **[Files](https://getkirby.com/docs/guide/content/files#meta-data-blueprints-for-the-panel)**
>
> Every page in your Kirby installation has its own set of files. Learn how Kirby handles these and how to add meta data to files.

---

<div class="post-metadata">

**Author:** ![afplaktape](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@afplaktape](https://forum.getkirby.com/u/afplaktape)\
**Post date:** [December 31, 2021, 9:59am UTC](https://forum.getkirby.com/t/invalid-file-type-document/24359/3 "2021-12-31T09:59:23Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 31, 2021, 10:11am UTC](https://forum.getkirby.com/t/invalid-file-type-document/24359/4 "2021-12-31T10:11:01Z")

</div>

> [@afplaktape](#):
>
> 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.
