FileUpload.clearInput

Syntax

clearInput (index)

Parameters

index. Input index.

Description

The clearInput method clears a loading by its index.

Example

To execute the example, create FileUpload component named fileUpload (see FileUpload constructor). Load two files to the component. To clear the first load, use the following script:

fileUpload.clearInput(0);

 

After executing the example the first load is cleared.

See also:

FileUpload