> For the complete documentation index, see [llms.txt](https://doc.orbeon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.orbeon.com/form-runner/component/video-attachment.md).

# 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)
