Zum Inhalt springen

Komponenten

Datei-Upload

Eine Dropzone und Dateiauswahl mit Unterstützung für mehrere Dateien.

Verwendung

Einfach

HTML
<bs:bsui-file-upload accept="image/*" multiple="true" />

Einzelnes Dokument

Jeweils eine Datei, beschränkt auf die vom Importer akzeptierten Dateiendungen.

HTML
<bs:bsui-file-upload name="invoice" accept=".pdf,.csv" />

Beschriftetes Feld

Der Hilfetext nennt Größen- und Formatregeln, die sich über die Accept-Liste nicht ausdrücken lassen.

PNG or SVG, at least 512 pixels wide.
HTML
<bs:bsui-field>
  <bs:bsui-field-label text="Company logo" />
  <bs:bsui-file-upload name="logo" accept="image/png,image/svg+xml" />
  <bs:bsui-field-description text="PNG or SVG, at least 512 pixels wide." />
</bs:bsui-field>

Deaktiviert

Die Dropzone wird abgedunkelt und nimmt keine Klicks oder Ziehvorgänge mehr an.

HTML
<bs:bsui-file-upload accept="image/*" disabled="true" />

Attribute

AttributTypStandard
name text —
accept text *
multiple toggle false
disabled toggle false
nameAlt text —