# Video attachment

[\[SINCE Orbeon Forms 2023.1\]](https://doc.orbeon.com/release-notes/orbeon-forms-2023.1)

## 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](https://4129616727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LEkBiSDvlXs3VWiO0Zu%2Fuploads%2Fgit-blob-40f4247e26210bdaf836ca8f4bebf7d7ec5154c2%2Fxbl-video-attachment.png?alt=media)

## Accepted mediatypes

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

If an [`upload-mediatypes` custom constraint](https://doc.orbeon.com/contributors/extension-validation#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](https://doc.orbeon.com/form-runner/component/image)
* [Video component](https://doc.orbeon.com/form-runner/component/video)
* [Attachment component](https://doc.orbeon.com/form-runner/component/attachment)
