# Managing files and media assets in GovCMS

{% embed url="<https://vimeo.com/501678251>" %}

{% embed url="<https://vimeo.com/501678619>" %}

{% embed url="<https://vimeo.com/501680468>" %}

{% embed url="<https://vimeo.com/501680070>" %}

## Files and Media - overview

An important feature of any Content Management System is the ability to create and manage **media assets** such as images, videos, documents, PDFs and other files. GovCMS allows you to upload and manage media assets which can be **reused** throughout your content.

## Files and Media - what's the difference?

A **file** refers to a physical file stored on the file system of your site. Similar to files stored on a server (or local machine), files contain properties such as:

* File type (e.g. jpeg, png, pdf)
* File size
* Upload date and time (on a local machine this is similar to 'Created date/time')

**Media** assets are entries in a site's database which *reference* or point to a file. Media assets are **content** that links to a physical **file**, providing the ability to store additional information (or properties) in fields *about the file*. These fields include:

* A user-friendly name
* Alt text for **images**
* Captions for **video** and **audio**
* Tags and revisions tracking.

## Files management interface

To access the **Files management interface**, click on **Content** then **Files** in the *Admin menu*.

The Files management interface (also known as the **Files list page**) presents a list view of all physical files uploaded to the website and an indicator of the number of places the file is used in the column **Used in**.&#x20;

<mark style="color:red;">**WARNING - the "Used in" column does NOT display an accurate number and should NOT be relied upon**</mark>. [This is a long and complicated Drupal core bug that is still being worked on](https://www.drupal.org/project/drupal/issues/2821423).

![Image of File management interface](https://1079433754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lyh9JMywljz0CN8oT8o%2Fuploads%2Fgit-blob-8e68177c4526958400dcf0bb8f3981bfd1cb3b18%2FUnit-6-Files-Media-1.png?alt=media)

The File list page includes filters at the top allowing searching for a file by *Filename*, *MIME type* (file extension)or *Status* and below that the list of files. The default order when this page loads is in order of last updated date. Ordering can be changed by clicking on the small icons next to any column in the list.

Each file listing includes:

1. Name
2. MIME type (file type)
3. Size
4. Status (Permanent or Temporary)
5. Upload date (date and time)
6. Changed date (date and time)
7. Used in (not an accurate number, see warning above)

The **Files management interface** can also be accessed by clicking **Content** in the *Admin menu* then clicking the **Files** tab in the tab area section highlighted in the screenshot below.

![Image of accessing File Management interface](https://1079433754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lyh9JMywljz0CN8oT8o%2Fuploads%2Fgit-blob-6df5e1cfaf2d02fa765ecc18f57951d7d893caf6%2FUnit-6-Files-Media-2.png?alt=media)

**Note** *The Files list page* does not provide any configuration options for files. It is mainly used for the purpose of locating files and tracking unused files.

## Media management interface

The **Media management interface** can be accessed by clicking **Content** in the *Admin menu* then clicking the **Media** tab in the tab area (highlighted in the previous screenshot).

![Image of accessing Media Management interface](https://1079433754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lyh9JMywljz0CN8oT8o%2Fuploads%2Fgit-blob-55f3fb445e25eac79f7a22d9395b3da891bf33ff%2FUnit-6-Files-Media-Interface-1.png?alt=media)

The Media management interface (also known as the **Media tabbed section**) displays a listing of all *Media* contained on the site and the following details about each item:

1. Thumbnail
2. Media name
3. Type
4. Author
5. Status (Published or Unpublished)
6. Updated (Last updated date/time)

It also includes a filter section allowing searching for a Media asset by Media name, Type (Audio, Image, Video etc.).

The default order when this page loads is in order of last updated date. Ordering can be changed by clicking on the small icons next to any column in the list.

The Media management interface provides a rich media management interface, including locating media assets editing them, replacing them or deleting them.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://salsa-digital.gitbook.io/govcms-content-administration/unit-6-files-media-assets/managing-files-and-media-assets-in-govcms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
