UploadControlSettings.FileInputCount Property
Gets or sets the number of file input elements contained within an UploadControl.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value that represents the total number of file input elements. |
Remarks
The file input element number can be changed by an end-user on the client side, by using the Add and the Remove buttons. In this case, the FileInputCount property value is synchronized with the actual number of file input elements, after the most recent postback on the server.
An UploadedFile object is generated for each of the uploaded files. You can use the static UploadControlExtension.GetUploadedFiles method to get access to these objects. An individual UploadedFile object can be accessed via its index, which is associated with the visual index of corresponding file input elements within the UploadControl (note that the file input elements indexes represent a zero-based array).
Handle the ASPxClientUploadControl.FileInputCountChanged client event, to perform specific actions on the client side every time, after the file input elements count has changed.