File Uploader

Basic usage:

No files selected

File Uploader Attributes

AttributeDescriptionTypeAccepted ValuesDefault
filesfiles listArray---[]
maxLengthmaximal length of selected files. If selected more than {maxLength} they will be concatenatedNumber---Infinity
acceptaccepted formats for filesString---*
tagIconicon of the selected file itemString------
showFileNameshould selected file (files) be shown under the Upload buttonBoolean---true
multipleshould multiple file selection be enabledBoolean---false
noDataTexttext to show if no files were selectedString---No files selected
fileSizeLimitsize limit for single file in bytesNumber---
fileListSizeLimitsize limit for the whole files list in bytesNumber---
buttonTypetype of the upload button (see VcButton component attributes)Stringdefault | outline | borderlessdefault
buttonIconicon for upload button (see VcButton component attributes)String------
buttonColorcolor of upload button (see VcButton component attributes)Stringprimary | secondary | destructiveprimary
buttonSizesize of upload button (see VcButton component attributes)Stringlarge | middle | smallmiddle
buttonTextinner text of upload buttonString---Upload file
tagMaxContentWidththe maximal width of selected file nameString---400