Forms / File upload

Forms

File upload

A file picker for one or more files, with the queue of picked files and their upload states.

import { EcoFileUpload } from "vue-ecosphere"

Picker

Choose or drop PDFs. Empty or oversized files are queued as Check file; press Upload with nothing chosen to see the panel error.

Supplier contracts
Choose your contractsSelect one or more PDFs from your computer

PDF only · Up to 25 MB per file

Queue: uploading, saved, failed

Upload sends one file at a time and locks the queue meanwhile. One file fails; Retry remaining files sends only what is not saved.

Supplier contracts
3 files selectedAdd more PDFs or review your selection below

PDF only · Up to 25 MB per file

  • Supplier agreement 2026.pdf2.4 MB
    Waiting
  • Price schedule A.pdf840 KB
    Waiting
  • Amendment 2.pdf312 KB
    Waiting

API

NameTypeDefaultDescription
v-modelFile[][]The queue. Exact duplicates (name, size, last-modified) are dropped.
status(file: File) => EcoFileStatus | undefined—{ state: waiting | uploading | saved | failed | invalid, progress?, error?, label? } per file.
accept / multiple / maxSizestring / boolean / number— / true / —Files that fail these are queued as Check file, never uploaded.
validate(file: File) => string | undefined—Your own check; return the problem in the reader's terms.
iconstring"file-line"File-type tile and row icon, e.g. file-pdf-2-line.
emptyTitle / emptyHint / chosenHintstring—Panel copy; it changes with the count.
chooseLabel / addLabel / listLabelstring"Choose files" / "Add more" / "Selected files"Button text and the queue's name.
label / required / hint / error / first / disabled——Field props. The error turns the panel is-invalid.
@files(files: File[]) => void—Files just picked or dropped.
@remove(file: File) => void—A file was removed from the queue.