---
url: https://docs.juniper.bot/en/message-templates/components/attachment-upload.md
description: File Upload component used in Modal Forms.
---

[action]: ../../../cmd/custom/actions/index

[actions]: ../../../cmd/custom/actions/index

[`modal.values`]: ../../types/custom-commands/modal

# File Upload

File Upload is data input component that lets your members upload up to 10 files.

This component has the following settings:

![attachment_settings_en.png](attachment_settings_en.png)

* **Label** — label displayed on the files group;
* **Description** — description displayed on the files group with smaller font size;
* **Identifier** — component identifier, enter something related to the component.
  ::: info
  Identifier must be unique across all message components of this action.

  The message template of [Action] being executed by this modal will get [`modal.values`] variable map, which keys
  will be those identifiers and their values are attachments data.

  Thus, this way [Action] can determine what files were uploaded and get information about them.
  :::
* **The minimum/maximum amount of files** — files amount limitation;
* **Required** — the files will be required to upload if checked.

## Availability { #availability }

This component is only available for [Modal Form](../../../cmd/custom/actions/modal-form) actions.
