# Multimedia

There are two types of Multimedia,&#x20;

* Documents
* Images

If you choose documents will allow you to upload whatever type of files

If you choose images will allow you to upload only images (png, jpg)

![](/files/irZEFZ3QnaD4YTJMrVSH)

**Max number files**: You can set the max number of files allowed to upload in that control

Max file size: You can set the max file size allowed to upload, if you don't set any value the default will be 2MB

**Upload Button text**: You can set the title of the action to upload files

![](/files/2tdcyUXrf6GiDzzciaie)

### Documents

#### Preview Mode

When you have a multimedia field configured as Documents, you have two ways of previewing the documents

<figure><img src="/files/F7zJmAam97HLMsZMCSBT" alt=""><figcaption></figcaption></figure>

* **Modal** (*Default*): Allows rendering the document preview in a modal.
* **Inline**: Allows rendering the document preview below the field on the same page.

<figure><img src="/files/R7cCvVkysZIhiRvk9Ugq" alt=""><figcaption><p>Inline Preview</p></figcaption></figure>


---

# 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://codenull.gitbook.io/dev/configurations/components/forms/fields/multimedia.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.
