---
title: Document library
---

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

The Document library enables live site users to upload and manage files stored in a pre-defined location in the [content tree](https://docs.kentico.com/k8/developing-websites/defining-website-data-structure.md). Document libraries do not have a dedicated application in the administration interface. The functionality is provided by two web parts: **Document library** and **Group document library**. Both web parts and their properties are described in [Using Document library web parts](https://docs.kentico.com/k8/intranet-features/document-library/using-document-library-web-parts.md). The Document library is also available as a [widget](https://docs.kentico.com/k8/managing-website-content/adding-page-content-through-widgets.md).

 ![Example of a document library](https://docs.kentico.com/docsassets/k8/document-library/Document_Library.png "Example of a document library")

Document library files are stored in the content tree as **CMS.File** documents. The uploaded documents can also be managed by website editors or administrators in the **Pages** application. Only flat file structure of document libraries is supported, i.e. you can't store files in sub-folders, but only under the main document. You can find more information about CMS.File documents and files in the [Managing files](https://docs.kentico.com/k8/configuring-kentico/managing-files.md) chapter.

A live example can be found on the **Intranet Portal** sample website, specifically on the\*\*\*/Documents\*\*\* page. The process of creating a similarly structured document library can be found in [Creating a document library](https://docs.kentico.com/k8/intranet-features/document-library/creating-a-document-library.md). The [Managing files in document libraries](https://docs.kentico.com/k8/intranet-features/document-library/managing-files-in-document-libraries.md) page explains how to use the library as a live site user. The [Configuring Document library security](https://docs.kentico.com/k8/intranet-features/document-library/configuring-document-library-security.md) page explains how standard document-level permissions are applied to documents in the library and how they can be configured.
