Back to Devexpress

UploadControlValidationSettings.MaxFileCount Property

aspnet-devexpress-dot-web-dot-uploadcontrolvalidationsettings-c09a4ec6.md

latest3.3 KB
Original Source

UploadControlValidationSettings.MaxFileCount Property

Gets or sets the maximum file count to be uploaded at once.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(0)]
public int MaxFileCount { get; set; }
vb
<DefaultValue(0)>
Public Property MaxFileCount As Integer

Property Value

TypeDefaultDescription
Int320

An Int32 value that specifies the maximum file count.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to MaxFileCount
ASP.NET MVC ExtensionsUploadControlBinderSettings

.ValidationSettings .MaxFileCount

| | UploadControlSettings |

.ValidationSettings .MaxFileCount

| | ASP.NET Web Forms Controls | ASPxUploadControl |

.ValidationSettings .MaxFileCount

|

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).

See Also

MaxFileCountErrorText

IsValid

UploadControlValidationSettings Class

UploadControlValidationSettings Members

DevExpress.Web Namespace