Upload
Examples
API
Properties
Name
Description and specifications
accept
The accept attribute specifies the types of files that the server accepts (that can be submitted through a file upload).
[accept]{@link "https://www.w3schools.com/tags/att_input_accept.asp"}
Attribute:
acceptType:
string | undefineddisabled
Disable all input events
Attribute:
disabledType:
booleanDefault:
falsei18nUploadDisabled
Text for disabled state
Attribute:
i-1-8n-upload-disabledType:
stringDefault:
'File upload currently not possible.'i18nUploadFile
Label for upload file button
Attribute:
i-1-8n-upload-fileType:
stringDefault:
'Upload file…'loadingText
Will be used by state = UploadFileState.LOADING
Attribute:
loading-textType:
stringDefault:
'Checking files…'multiline
Whether the text should wrap to more than one line
Attribute:
multilineType:
booleanDefault:
falsemultiple
If multiple is true the user can drop or select multiple files
Attribute:
multipleType:
booleanDefault:
falseselectFileText
Will be used by state = UploadFileState.SELECT_FILE
Attribute:
select-file-textType:
stringDefault:
'+ Drag files here or…'state
After a file is uploaded you can set the upload component to a defined state
Attribute:
stateType:
UploadFileState.LOADING | UploadFileState.SELECT_FILE | UploadFileState.UPLOAD_FAILED | UploadFileState.UPLOAD_SUCCESSEDDefault:
UploadFileState.SELECT_FILEuploadFailedText
Will be used by state = UploadFileState.UPLOAD_FAILED
Attribute:
upload-failed-textType:
stringDefault:
'Upload failed. Please try again.'uploadSuccessText
Will be used by state = UploadFileState.UPLOAD_SUCCESSED
Attribute:
upload-success-textType:
stringDefault:
'Upload successful'Events
Name
Description and specifications
filesChanged
You get an array of Files after drop-action or browse action is finished
Detail:
File[]