# Video attachment

[\[SINCE Orbeon Forms 2023.1\]](/release-notes/orbeon-forms-2023.1.md)

## What it does

This component represents an attachment to a form which has to contain a video. The video is displayed by the component when attached.

![Video attachment component](/files/4CKmiQ8n16D8RIkBI3Ex)

## Accepted mediatypes

By default the component accepts `video/*` mediatypes.

If an [`upload-mediatypes` custom constraint](/contributors/extension-validation.md#xxfupload-mediatypes) is present and not blank, it is used applied to the enclosed upload control. If missing, the default is `video/*`.

## Events

This component dispatches the following events following the enclosed upload control:

* `xxforms-upload-start`
* `xxforms-upload-cancel`
* `xxforms-upload-done`
* `xxforms-upload-error`

## See also

* [Image component](/form-runner/component/image.md)
* [Video component](/form-runner/component/video.md)
* [Attachment component](/form-runner/component/attachment.md)


---

# 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://doc.orbeon.com/form-runner/component/video-attachment.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.
