FileUpload.FileInputChanged

Syntax

FileInputChanged: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The FileInputChanged event occurs on selecting a file to be loaded.

Example

To execute the example, create FileUpload component named fileUpload (see href="Constructor_FileUpload.htm">FileUpload constructor).

fileUpload.FileInputChanged.add(function (sender, args)

{

    alert(fileUpload.getFileName());

});

After executing the example on selecting a file to be loaded, a message that contains name of the last loaded file is displayed.

See also:

FileUpload