UploadControlValidationSettings.MaxFileCount Property
Gets or sets the maximum file count to be uploaded at once.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | An Int32 value that specifies the maximum file count. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to MaxFileCount |
---|---|---|
ASP.NET MVC Extensions | UploadControlBinderSettings |
|
UploadControlSettings |
|
|
ASP.NET Web Forms Controls | ASPxUploadControl |
|
Remarks
- In standard upload mode, the MaxFileCount property limits the maximum number of file input elements.
- In advanced upload mode, the MaxFileCount property limits the maximum number of files selected for upload.
If the server gets more files than specified by the MaxFileCount property, the exceeding files will be ignored.
If the number of files selected for upload exceeds the MaxFileCount property value, an error text specified by the UploadControlValidationSettings.MaxFileCountErrorText property is displayed in the ASPxUploadControl‘s specific error frame. In this case, the uploaded file’s validation is considered to have failed (this means that the FileUploadCompleteEventArgs.IsValid and ASPxClientUploadControlFileUploadCompleteEventArgs.isValid properties are set to false
).