# Only allow specific file type in blueprint file settings

**URL:** <https://forum.getkirby.com/t/only-allow-specific-file-type-in-blueprint-file-settings/407>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 11, 2015, 9:02pm UTC](https://forum.getkirby.com/t/only-allow-specific-file-type-in-blueprint-file-settings/407 "2015-03-11T21:02:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobiasfabian](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tobiasfabian/32/13470_2.png) [@tobiasfabian](https://forum.getkirby.com/u/tobiasfabian)\
**Post date:** [March 11, 2015, 9:02pm UTC](https://forum.getkirby.com/t/only-allow-specific-file-type-in-blueprint-file-settings/407/1 "2015-03-11T21:02:26Z")

</div>

As far as I know, there is no possibility to only allow a specific file type in the [blueprint file settings](http://getkirby.com/docs/panel/blueprints/file-settings)

It could look somehow like this:

```
files:
  type: image

```

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [March 11, 2015, 10:32pm UTC](https://forum.getkirby.com/t/only-allow-specific-file-type-in-blueprint-file-settings/407/2 "2015-03-11T22:32:38Z")

</div>

I tried to include it: [https://github.com/distantnative/panel/commit/a3752085145e2e1d97c481da805ca7ac8dff8580](https://github.com/distantnative/panel/commit/a3752085145e2e1d97c481da805ca7ac8dff8580)

If you and others could check if this actually works as intended (little testing on my side did), we’d see if it’s actually a way to implement it. Which then @bastianallgeier could decide upon (or maybe we’ll figure out the checkUpload method isn’t the right place to do it)

EDIT: just realized that it would prob be useful to be able to specify more than 1 type. that would need a lil different take

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [March 11, 2015, 11:12pm UTC](https://forum.getkirby.com/t/only-allow-specific-file-type-in-blueprint-file-settings/407/3 "2015-03-11T23:12:09Z")

</div>

Now with multiple types supported: [https://github.com/distantnative/panel/commit/8013cf87773f518168081f347dfb964bbc1f9b1f](https://github.com/distantnative/panel/commit/8013cf87773f518168081f347dfb964bbc1f9b1f)

So this works:

```auto
files:
  type: document

```

and this as well:

```auto
files:
  type: 
    - image
    - video

```

The supported types can be found here: [http://getkirby.com/docs/cheatsheet/file/type](http://getkirby.com/docs/cheatsheet/file/type)

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:20pm UTC](https://forum.getkirby.com/t/only-allow-specific-file-type-in-blueprint-file-settings/407/4 "2025-02-06T17:20:48Z")

</div>

Archived on February 6, 2025, 5:20pm UTC


