---
title: Inserting files into media libraries
related:
  - https://docs.kentico.com/k8/managing-website-content/working-with-files/document-attachments/attaching-files-to-documents.md
  - https://docs.kentico.com/k8/managing-website-content/working-with-files/content-tree-files/inserting-files-into-the-content-tree.md
  - https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-media-libraries.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).

This page describes how to insert files into media libraries:

Media libraries are suited for storing any type of large files, not only of media character.

## To insert a file into a media library

1. Open the **Media libraries** application.
2. **Edit** () the media library into which you want to upload the files.

The **Media library** opens.

### Creating a folder (Optional step)

It's a good practice to organize your files in folders.

1. In the **Media library**, click **New folder** (). A **New folder** dialog box opens.
2. Fill in the **Folder name**.
3. Click **Save**.

### Inserting a file to a media library

1. Select the folder into which you want to upload the file.
2. Click **Upload**. An **Open** dialog appears.

   ![Uploading files to media libraries](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/uploading_file.png "Uploading files to media libraries")
3. Choose the file that you want to upload and click **Open**. Note that you can select multiple files at once.

   ![Selecting files to upload to media libraries](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/uploading_files.png "Selecting files to upload to media libraries")

Once you upload the file, you can see it in the folder that you chose to upload it into. Note that you can preview audio, video and picture files at the bottom of the window – under the **File** tab.

![Files in a media library](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/uploaded_files.png "Files in a media library")

> **Note:** **File name case when using external storage providers**
>
> If your media library folder is located on an external storage provider, such as [Azure storage](https://docs.kentico.com/k8/custom-development/working-with-physical-files-using-the-api/configuring-file-system-providers/configuring-azure-storage.md) or [Amazon S3](https://docs.kentico.com/k8/custom-development/working-with-physical-files-using-the-api/configuring-file-system-providers/configuring-amazon-s3.md), Kentico _**converts all media file and folder names to lower case**_. This is necessary to ensure consistent behavior, because external storage systems are case-sensitive, unlike standard Windows file systems.

## Adding a thumbnail to a file in a media library

The system creates thumbnails for image files in media library automatically when they are first viewed. You can also use your own thumbnails so that visitors can preview files in media libraries.

1. Open the **Media libraries** application.
2. **Edit** () the media library in which you want to change a file thumbnail. The **Media library** opens.
3. Navigate to the file for which you want to change the thumbnail.
4. **Select** the file.
5. At the bottom of the window, switch to the **Thumbnail** tab.
6. Click **Upload file**.
7. Select the picture that you want to use as a thumbnail.

   ![Selecting a thumbnail for a media library file](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/selecting_thumbnail.png "Selecting a thumbnail for a media library file")
8. Click **Open**.

You have added a thumbnail picture to a file in your media library.

## Uploading multiple files into media libraries

If you have FTP access to your website, you can upload multiple files to media libraries at once. The following example uses Windows Explorer to connect to an FTP and upload files. However, you can use other FTP clients to upload files to your website as well.

#### To upload multiple files into a media library

1. Open Windows Explorer by pressing **WinKey + E**.
2. Click into the address (path) bar.
3. Fill in the FTP address of the location of your website.

   ![Filling in an FTP address](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/ftp_address.png "Filling in an FTP address")
4. Press **ENTER**.
5. Fill in your credentials.

   ![Filling in FTP credentials](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/filling_in_credentials.png "Filling in FTP credentials")
6. Click **Log on**.
7. Navigate to **\\\media\\**.
8. Copy the files that you want in the media library to the folder or to a sub-folder.

   ![Copying files to media library](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/copying_files.png "Copying files to media library")

You can now see the files you uploaded when editing your media library in the **Media libraries** application. To be able to use these files, you need to register them in the system's database as described below.

### Registering files uploaded to media library using FTP

Now that you copied the files into the media library, you need to register them in the database.

1. Open the **Media libraries** application.
2. **Edit** () the media library in which you want to register the uploaded files. The **Media library** opens.
3. Choose the folder into which you copied the files.

   > **Info:** Unregistered files are marked with the warning () icon indicating that they have not yet been imported—**registered in the system database**. The files that you import are not physically copied into the database, they remain in the file system only and a record linking to the physical file is created in the database.
4. Select the files that you want to import.

   > **Tip:** You can also import the files one by one by clicking the warning () icon.
5. In the first drop-down list under the list of files, choose **Selected files**.
6. In the second drop-down list under the list of files, choose **Import**.

   ![Registering files copied to a media library](https://docs.kentico.com/docsassets/k8/inserting-files-into-media-libraries/importing_files.png "Registering files copied to a media library")
7. Click **OK**. The **File import** dialog opens.
8. Adjust the image properties before importing.
9. Click **Import file**.
10. Repeat the procedure for all the files you chose to import.

Now that you imported the files, you can manipulate them as you would any other files in the media library.
