---
title: Configuring grouped page attachments
related:
  - https://docs.kentico.com/13/managing-website-content/working-with-files/page-attachments.md
  - https://docs.kentico.com/13/managing-website-content/working-with-files/page-attachments/attaching-file-groups-to-pages.md
  - https://docs.kentico.com/13/configuring-xperience/managing-files/storing-files.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

If you want files to be associated with a particular page, there are several types of page attachments:

- [unsorted attachments](https://docs.kentico.com/13/managing-website-content/working-with-files/page-attachments.md) added to pages on the **Properties -> Attachments** tab
- attachments added by uploading files into fields defined for a [page type,](https://docs.kentico.com/13/developing-websites/defining-website-content-structure/managing-page-types.md) using one of the following data types:
  - **Attachments** – stores multiple attachments under a single page type field
  - **File** – stores a single page attachment

Grouped page attachments are a suitable for situations when you want to separate attachments into multiple different groups. First, [create attachment fields](#creating-attachment-fields) in the related page type and then develop content that [displays the attachment files](https://docs.kentico.com/13/developing-websites/retrieving-content/displaying-page-attachments.md) on your website.

## Creating attachment fields

1. Open the **Page types** application.
2. [Create a new page type](https://docs.kentico.com/13/developing-websites/defining-website-content-structure/managing-page-types/creating-page-types.md), or **Edit** () an existing one.
3. If you are creating a new page type, stop on the **Fields** step of the wizard. If you are editing an existing page type, switch to the **Fields** tab.
4. Click **New field**.
5. Type a **Field name**.
6. In **Data type**, select _Attachments_.
   - The system then automatically selects _Attachments_ as the **Form control**.
7. Type a **Field caption**. This is the label of the field.
8. Click **Save**.
9. (Optional) Repeat steps 4–8 to add any number of attachment fields.
10. If you are creating a new page type, finish the creating process.

The system saves the fields.

The attachment fields are available when editing pages of the specified page type on the **Content** tab. See [Attaching file groups to pages](https://docs.kentico.com/13/managing-website-content/working-with-files/page-attachments/attaching-file-groups-to-pages.md).

Do not forget that the website's developers need to implement code that displays or otherwise uses the uploaded attachments. See [Displaying page attachments](https://docs.kentico.com/13/developing-websites/retrieving-content/displaying-page-attachments.md).

## Reference – Editing control settings for Attachments fields

When you edit a specific page type in the **Page type** application, select a specific field on the **Fields** tab. If you select _Attachments_ as the **Field type**, the system automatically selects _Attachments_ as the **Form control**, and the **Editing control settings** category appears. All options from the category are described in the following reference.

> **Info:** Some of the options are displayed only after you click **Advanced**.

| Name                             | Description                                                                                                                                                                                                                                                                                                                                                                                                  |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Allow change order               | If selected, the order of attachments can be changed.                                                                                                                                                                                                                                                                                                                                                        |
| Paging                           | If selected, paging is used for the list of attachments.                                                                                                                                                                                                                                                                                                                                                     |
| Page size                        | Define the page size options that are selectable in the attachments paging. Values must be separated by commas.<br>For example, _25,50,100,##ALL##_ where _##ALL##_ means an option for displaying all attachments on one page.<br>**Page size** is valid only when **Paging** is selected.                                                                                                                  |
| Default page size                | Define the amount of attachments displayed per page by default.<br>**Default page size** is valid only when **Paging** is selected.                                                                                                                                                                                                                                                                          |
| Allowed extensions               | Define which file extensions are allowed to be uploaded as attachments.<br>Select **Inherit from** **settings** to use the values specified in **Settings -> System -> Files**. Clear **Inherit from settings** to set own file extensions separated by semicolons, e.g., _jpg;gif;png_.                                                                                                                     |
| Automatic image resize on upload |                                                                                                                                                                                                                                                                                                                                                                                                              |
| Resize                           | Define whether the system resizes uploaded images or not. Select:<br>_(do not resize)_ – to leave images in their original resolution without resizing,<br>_(use site settings)_ – to resize images according to the site settings in **Settings -> System -> Files**, or<br>_(use custom settings)_ – to resize images according to the fields **Width (px)**, **Height (px)**, and **Max side size** (px). |
| Width (px)                       | Images will be resized so that width matches the entered value. The aspect ratio will not be kept.<br>**Width (px)** is enabled only when you select _(use custom settings)_ in **Resize**.                                                                                                                                                                                                                  |
| Height (px)                      | Images will be resized so that height matches the entered value. The aspect ratio will not be kept.<br>**Height (px)** is enabled only when you select _(use custom settings)_ in **Resize**.                                                                                                                                                                                                                |
| Max side size (px)               | If one of the sides of the image is larger than this value, the image will be resized so that the larger side matches the entered value. The aspect ratio is kept, and **Width (px)** and **Height (px)** are not applied.<br>**Max side size (px)** is enabled only when you select _(use custom settings)_ in **Resize**.                                                                                  |
