Skip to main content
A newer version of this page is available. .

ASPxClientUploadControl.GetText(index) Method

Gets the text displayed within the edit box of the specified file input element.

Declaration

GetText(
    index: number
): string

Parameters

Name Type Description
index number

An integer value that specifies the required file input element’s index.

Returns

Type Description
string

A string value representing the displayed text.

Remarks

The GetText method returns the text of an input whose index you pass as a parameter:

var text = uploadControl.GetText("5");

… or of an input with zero index (default input) if you do not pass the parameter:

var text = uploadControl.GetText();

In Advanced upload, you can use the GetSelectedFiles method.

var items = uploadControl.GetSelectedFiles();
var secondName = items[1].name;
See Also