File Uploader
Basic usage:
File Uploader Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
files | files list | Array | --- | [] |
maxLength | maximal length of selected files. If selected more than {maxLength} they will be concatenated | Number | --- | Infinity |
accept | accepted formats for files | String | --- | * |
tagIcon | icon of the selected file item | String | --- | --- |
showFileName | should selected file (files) be shown under the Upload button | Boolean | --- | true |
multiple | should multiple file selection be enabled | Boolean | --- | false |
noDataText | text to show if no files were selected | String | --- | No files selected |
fileSizeLimit | size limit for single file in bytes | Number | --- | |
fileListSizeLimit | size limit for the whole files list in bytes | Number | --- | |
buttonType | type of the upload button (see VcButton component attributes) | String | default | outline | borderless | default |
buttonIcon | icon for upload button (see VcButton component attributes) | String | --- | --- |
buttonColor | color of upload button (see VcButton component attributes) | String | primary | secondary | destructive | primary |
buttonSize | size of upload button (see VcButton component attributes) | String | large | middle | small | middle |
buttonText | inner text of upload button | String | --- | Upload file |
tagMaxContentWidth | the maximal width of selected file name | String | --- | 400 |