Skip to content

Upload

Click or drag to select files; displays the file list and upload progress.

Basic Usage

Basic (select files)

Multiple & Limit

Multiple + max

max limits the maximum number of selectable files; accept filters file types.

Auto Upload

Auto upload (simulated progress)

With auto-upload, adding a file automatically simulates upload progress; the progress bar reuses oas-progress.

Disabled

Disabled

Events

Change events

Listen to oas-change / oas-remove / oas-upload:

API

Attributes

AttributeDescriptionTypeDefault
acceptAccepted file typesstring
auto-uploadAuto-simulate upload after addingboolean
disabledDisabledboolean
filesFile list (property, File[])File[][]
maxMaximum number of filesstring0
multipleMultiple selectionboolean

Events

EventDescription
oas-changeFile list change, detail: { files }
oas-removeFile removed, detail: { file, index }
oas-uploadUpload progress, detail: { file, percent, status }

Keyboard: Enter / Space on the drop zone opens the file picker; remove buttons are focusable.