ASPxClientUploadControl.GetSelectedFiles(inputIndex) Method
Returns files selected for uploading within the specified file input.
Declaration
GetSelectedFiles(
inputIndex: number
): ASPxClientUploadControlFile[]
Parameters
Name | Type | Description |
---|---|---|
inputIndex | number | An integer value that specifies the index of a file input. Default value is “0”. |
Returns
Type | Description |
---|---|
ASPxClientUploadControlFile[] | An array of ASPxClientUploadControlFile objects that are files selected for uploading. |
Remarks
The GetSelectedFiles method is used if the multi-select mode is enabled (the ASPxUploadControl.FileInputCount property value is greater that “0” or the ASPxClientUploadControl.AddFileInput method is used).
Note that full information about the selected file is available only if the upload control’s advanced mode is enabled (ASPxUploadControl.UploadMode is set to “Advanced” or “Auto” provided that a user’s browser supports HTML5). If HTML5 is not available in the browser and the Microsoft Silverlight plug-in is installed, the returned object is null.
In standard mode (ASPxUploadControl.UploadMode is set to “Standard”), the returned object provides only the ASPxClientUploadControlFile.name property, while the ASPxClientUploadControlFile.size property is null and the ASPxClientUploadControlFile.sourceFileObject property is -1.