# Media library

Store and manage image, audio, and video content for your messages. You can preview each file and assign keywords so they are easily found in search.

## About the media library

Use the media library to host media files for your project and insert them when you compose messages, without uploading the same asset every time.

Your Airship plan must include [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) support to use the media library. [Contact Support](https://support.airship.com/) if you are interested in enabling CDN media hosting.

File guidelines and handling:

* Uploaded media must be 2 MB or smaller.
* You can upload up to 100 files at a time.
* There are no restrictions on uploading identical files or files with identical names.
* The media library is not available for MMS messages.
* Media that is not accessed by end users is automatically removed according to the [Airship Data Retention Schedule](https://www.airship.com/docs/reference/general/#data-retention-schedule).

See also [Media guidelines](https://www.airship.com/docs/reference/messages/media-guidelines/).

## Add media to the library

To add media to your project:

1. Go to **Content** and select **Media**
1. Select **Upload media** and choose your files.

## Insert media in message content

You can access the library when inserting media in messages:

1. (For a media field in a message) Select **Upload**, then **Insert media**.
1. (From the [WYSIWYG editor](https://www.airship.com/docs/guides/messaging/features/wysiwyg-editor/about/)) Select an Image element in the message, then select **Upload image**.
1. Manage your media files as needed. You cannot select multiple files when in this view.
1. To add media to the message, select a file, then **Insert selected media**. Otherwise, select **Cancel** or the X icon to close.

## Managing media

Go to **Content** and select **Media** to access your media library. Your most recent upload is listed first. You can sort the list by file name, size, or date uploaded, filter by keyword, and search by name or keyword.

In the list, select a file name to open a drawer where you can do the following:
   * Preview the media. For audio and video files, you can play the file from the preview.
   * Edit the keywords. Select **Save** after making your changes.
   * Select **Duplicate**, which is the same as the action available from the more menu icon (), as described in the table below.
   * View the date and time when the item was uploaded.

To edit the keywords for multiple files:

1. Select the files in the list to open the details drawer. You can use the arrows below the preview to navigate between files.
1. Under **Shared Keywords**, add or remove keywords.
1. Select **Save**.

The following actions are available from the more menu icon () in the media list:

| Action | Description | Steps |
| --- | --- | --- |
| **Duplicate** | Save a copy of the file to a different project. The copy will have the same keywords as the original. | Select the more menu icon () for a file, then **Duplicate**. Search for the project name you'd like to save to, then select **Duplicate**. |
| **View information and access additional actions** | Open the same drawer as when you select a file name. For what you can do in the drawer, see the list above this table. | Select the more menu icon (), then **View detail**. |
| **Delete** | Remove a file from your media library. | Select the more menu icon (), then **Delete**. |
