---
title: Settings - Files
---

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

| Storage                                                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Store files in file system                                      | Indicates if files should be stored in the file system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Store files in database                                         | Indicates if files should be stored in the database.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Generate thumbnails                                             | Indicates if the Kentico should generate image thumbnails on the disk when a **resized version** of the image is displayed. This option only applies if files are stored in the file system. It **improves site performance**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Files folder                                                    | The folder on the disk where page attachments and metafiles are stored. You can use:<br>**physical disk path**: e.g. _c:\myfiles\\_<br>**virtual path**: _\~/UploadedFiles_<br>**UNC path**: _\\\server\folder_<br>If you do not specify any value, the files are stored in the default folder: _\~//files_<br>**Note**: When you change the file folder location, the system does NOT automatically move existing files to the new location. You need to manually move the files to the new location in the file system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Use site-specific subfolders for custom files folder            | This setting is only applied when a **Custom form files folder** is configured. If enabled, attachment files will be stored in a sub-folder named according to the code name of the site where the form is placed, i.e. _/_. It is useful for better orientation in files when multiple sites are running in the system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Custom form files folder                                        | Folder where files uploaded via [Forms ](https://docs.kentico.com/k82/managing-website-content/forms.md) are stored. You can use:<br>**physical disk path**: e.g. _c:\myfiles\mysite_<br>**virtual path**: _\~/UploadedFiles_<br>**UNC path**: _\\\server\folder_<br>If you do not specify any value, form files are stored in the default folder: _\~//BizFormFiles_<br>**Note**: When you change the form file folder location, the system does NOT automatically move existing files to the new location. You need to manually move the files to the new location in the file system.                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Use site-specific subfolders for custom form files folder       | This setting is only applied when a **Custom form files folder** is configured. If enabled, attachment files will be stored in a sub-folder named as the site code name under the custom files folder, i.e. _/_. It is useful for better orientation in files when multiple sites are running in the system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| File import folder                                              | Path to the source folder where files to be imported by [File import](https://docs.kentico.com/k82/configuring-kentico/managing-files/importing-files.md) should be uploaded before import. If no value is entered, _\~/CMSImportFiles_ is used by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Security                                                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Upload extensions                                               | Specifies which extensions are allowed for uploaded files. You can restrict the types of uploaded files by entering a limited list of extensions separated by semicolons, for example: _gif;jpg;doc;pdf_<br>This allows you to block users from uploading potentially dangerous files, such as ASPX scripts. If no value is specified, uploading is allowed for all file types.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Check if files are published                                    | If checked, only files that are in the **Published** workflow step can be accessed from the live site when a workflow is applied to the page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Check files permissions                                         | If checked, page permissions are applied to the files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Image resizing                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Automatic image resize on upload (width, height, max side size) | Configures the system to automatically _**reduce**_ the size of images when they are uploaded. The values are measured in pixels. The behavior depends on the values that you fill in:<br>**No values are entered** - images are not resized.<br>**Only width or only height** - images are resized so that their width or height matches the entered value. The other dimension is also resized to preserve the image's aspect ratio.<br>**Both width and height** - both dimensions of images are resized according to the specified values (if the given dimension is greater than the entered value). Aspect ratio is not preserved.<br>**Max side size** - if one of the image's sides is larger than this value, the image is resized so that its larger side's dimension matches the entered value. Aspect ratio is preserved and width and height settings are not applied.<br>See [Resizing images on upload](https://docs.kentico.com/k82/configuring-kentico/managing-files/resizing-images-on-upload.md) for more information. |
| Watermark                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Watermark image                                                 | Allows you to specify an image file that the system adds as a watermark to images (according to the remaining settings in the category). There are two ways to set the watermark:<br>Enter the full relative path to a physical file on the server, for example _\~/App\_Themes/Default/Images/Powered\_by\_kentico.gif_. You cannot use web links or images loaded using Kentico system pages, such as GetFile.<br>Enter only the name of an image file located in the _\~/App\_Themes/Default/Images/Watermarks_ folder.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Watermark position                                              | Sets the position where the watermark is placed on the watermarked images.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Minimum image width for watermark                               | Minimum width of an image to be watermarked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Minimum image height for watermark                              | Minimum height of an image to be watermarked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Use watermark for page images                                   | If enabled, the system adds the watermark to images stored as page attachments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Use watermark for media files                                   | If enabled, the system adds the watermark to images stored in [media libraries](https://docs.kentico.com/k82/managing-website-content/working-with-files/media-library-files.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Use watermark for object attachments                            | If enabled, the system adds the watermark to images stored as object attachments (metafiles).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
