> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# msm-documents-upload

> Web-компонент msm-documents-upload.

`msm-documents-upload` — web-компонент на Lit.

## Назначение

Загрузка файлов или изображений из UI.

## Пример

```html theme={null}
<msm-documents-upload></msm-documents-upload>
```

## Атрибуты / свойства

| Имя        | Тип    | По умолчанию | Примечания    |
| ---------- | ------ | ------------ | ------------- |
| `payload`  | object | `{}`         |               |
| `entityId` | string | `""`         | property only |
| `urls`     | array  | -            |               |
| `url`      | string | -            |               |

## События

| Событие           | detail | Когда |
| ----------------- | ------ | ----- |
| `msm-file-upload` | -      |       |
| `msm-file-remove` | -      |       |

### Пример

```html theme={null}
<msm-documents-upload>
</msm-documents-upload>

<script>
  const el = document.querySelector("msm-documents-upload");
  el.addEventListener("msm-file-upload", (e) => {
    console.log(e.detail);
  });

  el.addEventListener("msm-file-remove", (e) => {
    console.log(e.detail);
  });

</script>
```

## CSS parts

* `base`

## Слоты

Документированных слотов нет.

## Методы

Публичные методы не документированы.

## Примечания

* Custom events bubble.
