_UploadBase

(esrith/amos/core/_UploadBase)

Type Description
label String

Text that appears on button.

name String

Name of upload button. When use a control for request to server, this property is parameter's name.

valid Boolean

If valid is true, check the validity of upload file.

validSize Number

Maximum allowed size for uploaded files. Default is ‘0’, which means infinite size.

validType String[]

Type of file for upload.

value File

Value of a upload control.

Return type Description
reset() None

Use the reset() method to reset all state and value to default.

Description
change

The event fires when the value of an element has been changed.

Properties Detail
<String>
label

Text that appears on button.

Default value: Browse...

<String>
name

Name of upload button. When use a control for request to server, this property is parameter's name.

<Boolean>
valid

If valid is true, check the validity of upload file.

<Number>
validSize

Maximum allowed size for uploaded files. Default is ‘0’, which means infinite size.

Default value: 0

<String[]>
validType

Type of file for upload.

<File>
value

Value of a upload control.

Methods Detail
reset
()

Use the reset() method to reset all state and value to default.

Events Detail
change

The event fires when the value of an element has been changed.

Event Payload:
  • <Object> evt

    -javascript event object