File upload

(part of package 'Servoy Extra Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

This is a reference page; many components have detailed usage guides here.

Properties

accept

Html accept attribute - defines accepted files to be uploaded. Default is all files.

Type: string Default Value: "*/*"


dataProviderID

Type: dataprovider


displaysTags

Type: boolean


enabled

Type: enabled Default Value: true


iconStyleClass

Type: styleclass Default Value: "fa fa-upload fa-3x"


location

Type: point


multiFileUpload

Type: boolean Default Value: false


resultDisplayTimeout

Delay before displaying the upload result - in milliseconds

Type: int Default Value: 2000


showFileName

Type: boolean Default Value: true


showProgress

Type: boolean Default Value: true


styleClass

Type: styleclass


styleClassExpression

Type: dataprovider


successIconStyleClass

Type: styleclass Default Value: "fa fa-check fa-3x"


toolTipText

Type: tagstring


uploadCancelText

Type: tagstring Default Value: "Upload canceled"


uploadNotSupportedFileText

Type: tagstring Default Value: "File type is not supported for upload"


uploadNotSupportedText

Type: tagstring Default Value: "File Drag/Drop is not supported for this browser"


uploadProgressText

Type: tagstring Default Value: "Uploading click to cancel"


uploadSuccessText

Type: tagstring Default Value: "Successfully uploaded"


uploadText

Type: tagstring Default Value: "Drop a file here or click to upload"


visible

Type: visible


Events

onDataChangeMethodID

Parameters:

oldValue ${dataproviderType} newValue ${dataproviderType} event JSEvent

Returns: boolean


onFileTransferFinishedMethodID

Parameters:

event JSEvent


onFileUploadedMethodID

Parameters:

jsUpload JSUpload


API


Last updated