Skip to main content

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

The index of the required file input element.

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;

Online Example

View Example: How to implement custom validation rules

See Also