> ## 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-Komponente msm-documents-upload.

`msm-documents-upload` ist eine Web-Komponente (Lit).

## Zweck

Upload von Dateien oder Bildern.

## Beispiel

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

## Attribute / Properties

| Name       | Typ    | Standard | Hinweise      |
| ---------- | ------ | -------- | ------------- |
| `payload`  | object | `{}`     |               |
| `entityId` | string | `""`     | property only |
| `urls`     | array  | -        |               |
| `url`      | string | -        |               |

## Events

| Event             | detail | Wann |
| ----------------- | ------ | ---- |
| `msm-file-upload` | -      |      |
| `msm-file-remove` | -      |      |

### Beispiel

```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`

## Slots

Keine Slots dokumentiert.

## Methoden

Keine öffentlichen Methoden dokumentiert.

## Hinweise

* Custom events bubble.
