---
title: Attaching files to forum posts
---

> 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).

Users can attach files to forum posts. To enable users to do this, you have to assign the **Attach files** permission on the forum's **Security** tab to the desired user roles or to all authenticated users. See [Managing forum security](https://docs.kentico.com/k12sp/community-features/forums/managing-forum-security.md) for more details. There are also some additional settings related to attachments:

In **Settings -> Community -> Forums**, you can adjust the following setting:

- **Forum attachments allowed extensions** - you can specify which file extensions can be attached to forum posts. Enter the extensions without dots, and separate them by semicolons. If blank, all extensions are allowed.

In the properties of the **Forum group** web part, you can adjust the following settings:

- **Display attachment image** - if enabled, the system displays attached images as images, not as links only.
- **Attachment image maximal side size** - if an attached image is larger than the entered value, the system resizes the image so that its larger side's size is equal to the entered value.

When editing a forum in the **Forums** application, you can set the following property on the **General** tab:

- **Attachment max. file size (kB)** - you can define the maximum size of an attached file in kB.

## Adding attachments to a forum post

When adding a post to a forum, users can enable the **Attach file(s)** function (if configured accordingly Forums -> Edit () _forum group_ -> Forums -> Edit () _forum_ -> Security).

![Attaching files to a forum post](https://docs.kentico.com/docsassets/k12sp/attaching-files-to-forum-posts/attaching_files.png "Attaching files to a forum post")

After clicking **OK**, a new dialog appears where users can upload the attachments. When all desired images are uploaded, users can click **Back**, which takes them back to the forum.

Back in the forum thread, links to uploaded attachments are displayed with the post.

![Viewing forum post attachments](https://docs.kentico.com/docsassets/k12sp/attaching-files-to-forum-posts/viewing_attachments.png "Viewing forum post attachments")
