> For the complete documentation index, see [llms.txt](https://docs.hubyte.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hubyte.de/artikel-konfigurator/medienupload.md).

# Medienupload

Mit dem Feldtyp **Medien upload** kann der Kunde auf der Produktdetailseite eine Datei hochladen – zum Beispiel ein Logo zum Bedrucken, eine Vorlage oder ein Foto. Die hochgeladene Datei wird der Position zugeordnet und steht in der Bestellung zur Verfügung.

<figure><img src="/files/2Gaz3FZvxeSrYAEqwJhl" alt=""><figcaption></figcaption></figure>

## Feld vom Typ „Medien upload" anlegen

1. Legen Sie unter **Eigene/Zusätzliche Felder** ein neues Feld an.
2. Wählen Sie als **Feld-Typ** den Eintrag **Medien upload**.
3. Konfigurieren Sie die Upload-Einstellungen:

| Einstellung                     | Beschreibung                                                                                                  |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| **Zulässige Datei-Formate**     | Auswahl der erlaubten Dateiformate. Nur sichtbar, wenn die Formatbeschränkung global aktiv ist (siehe unten). |
| **Maximale Upload-Größe in kB** | Begrenzt die Dateigröße des Uploads.                                                                          |

## Globale Einstellungen für den Medienupload

In der [Plugin-Konfiguration](/artikel-konfigurator/plugin-konfiguration.md) finden Sie im Bereich **Feldtyp: Medienupload** zusätzliche, global gültige Optionen:

| Einstellung                   | Schlüssel             | Beschreibung                                                                                                                     |
| ----------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **Vorschaubild anzeigen**     | `previewImage`        | Zeigt nach dem Upload ein Vorschaubild im Artikel an.                                                                            |
| **Bildbreite in px**          | `imageWidth`          | Breite des Vorschaubildes beim Medienupload (Standard: 50).                                                                      |
| **Dateiformate einschränken** | `fileTypeRestriction` | Wenn aktiv, lassen sich die zulässigen Dateiformate je Feld einschränken. Ist die Option deaktiviert, sind alle Formate erlaubt. |

## Verhalten im Frontend

Der Kunde wählt im Upload-Feld eine Datei aus. Ist die Vorschau aktiviert und handelt es sich um ein Bild, wird ein Vorschaubild in der konfigurierten Breite angezeigt. Beim Hinzufügen zum Warenkorb wird die Datei übernommen und der Position zugeordnet.

> **Tipp:** Schränken Sie die zulässigen Dateiformate und die maximale Größe sinnvoll ein, um Fehl-Uploads und sehr große Dateien zu vermeiden. Für Druckvorlagen sind z. B. `pdf`, `png` und `jpg` üblich.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hubyte.de/artikel-konfigurator/medienupload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
