# Files field in file blueprint

**URL:** <https://forum.getkirby.com/t/files-field-in-file-blueprint/21996>\
**Category:** Questions\
**Tags:** v3\
**Created:** [April 20, 2021, 3:44pm UTC](https://forum.getkirby.com/t/files-field-in-file-blueprint/21996 "2021-04-20T15:44:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sara](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sara](https://forum.getkirby.com/u/sara)\
**Post date:** [April 20, 2021, 3:44pm UTC](https://forum.getkirby.com/t/files-field-in-file-blueprint/21996/1 "2021-04-20T15:44:21Z")

</div>

Hello everyone!

I was wondering if it is possible to add a file field in a file blueprint, fetching all the images (if there is any) of the parent page.

I have to put documents on my website. Every doc has its cover.  
I would like to avoid a field where the client has to select both the doc and the jpg for the cover, including this choice directly in the document blueprint (hope you understand what I mean).

Here’s my blueprint:

```
title: Documenti PDF

accept:
  mime: application/pdf

fields:

  cover:
    label: Copertina
    type: files
    multiple: false
    # query: page.files.template('images')
    query: site.find('system').children.images.filterBy('template', 'images')
    uploads: false

```

Thank you for letting me know if this is even possible or if I’m just waisting my time.  
Have a wonderful evening!

Sara

---

<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:** [April 20, 2021, 5:35pm UTC](https://forum.getkirby.com/t/files-field-in-file-blueprint/21996/2 "2021-04-20T17:35:23Z")

</div>

Should be possible, what’s the problem, the query? Try

```auto
query: file.parent.images.template('images')

```

---

<div class="post-metadata">

**Author:** ![sara](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sara](https://forum.getkirby.com/u/sara)\
**Post date:** [April 21, 2021, 6:54am UTC](https://forum.getkirby.com/t/files-field-in-file-blueprint/21996/3 "2021-04-21T06:54:42Z")

</div>

Sonja you always save me!

Apparently I keep complicate things that are easy. Of course with this query it works.

Thank you so much! ❤  
Sara
