Components/FileUploader
Universal Component

FileUploader

General file uploader with multi-file, drag & drop, and list management.

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

FileUploader

General file uploader with multi-file support, drag & drop, and list management.

Basic Usage

Demo loads on client.

API

TxFileUploader Props

NameTypeDefaultDescription
modelValueFileUploaderFile[][]File list
multiplebooleantrueEnable multi-select
acceptstring*/*Accept types
disabledbooleanfalseDisabled state
maxnumber10Max files
showSizebooleantrueShow file size
allowDropbooleantrueEnable drag & drop
buttonTextstring'Choose files'Button text
dropTextstring'Drop files here'Drop area text
hintTextstring'or click to browse'Hint text

Events

EventPayloadDescription
update:modelValue(files)File update
change(files)File change
add(files)Add files
remove({ id, value })Remove file

FileUploaderFile

FieldTypeDescription
idstringUnique id
namestringFile name
sizenumberFile size
typestringMIME type
fileFileOriginal file

Expose

NameDescription
pick()Open system file picker
Was this helpful?