Skip to main content
A newer version of this page is available. .
Tab

UploadControlValidationSettings.MaxFileCount Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(0)]
public int MaxFileCount { get; set; }

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:

Show 33 property paths
Library Object Type Path to MaxFileCount
ASP.NET Controls and MVC Extensions ASPxHtmlEditorAudioUploadSettings
.ValidationSettings .MaxFileCount
ASPxHtmlEditorFlashUploadSettings
.ValidationSettings .MaxFileCount
ASPxHtmlEditorImageUploadSettings
.ValidationSettings .MaxFileCount
ASPxHtmlEditorUploadControl
.ValidationSettings .MaxFileCount
ASPxHtmlEditorVideoUploadSettings
.ValidationSettings .MaxFileCount
HtmlEditorAudioSelectorUploadSettings
.ValidationSettings .MaxFileCount
HtmlEditorDocumentSelectorUploadSettings
.ValidationSettings .MaxFileCount
HtmlEditorFileManagerUploadSettings
.ValidationSettings .MaxFileCount
HtmlEditorFlashSelectorUploadSettings
.ValidationSettings .MaxFileCount
HtmlEditorImageSelectorUploadSettings
.ValidationSettings .MaxFileCount
HtmlEditorVideoSelectorUploadSettings
.ValidationSettings .MaxFileCount
RichEditDocumentSelectorUploadSettings
.ValidationSettings .MaxFileCount
SpreadsheetFileManagerUploadSettings
.ValidationSettings .MaxFileCount
ASPxUploadControl
.ValidationSettings .MaxFileCount
BinaryImageUploadSettings
.UploadValidationSettings .MaxFileCount
FileManagerSettingsUpload
.ValidationSettings .MaxFileCount
ASP.NET Bootstrap Controls BootstrapBinaryImageUploadSettings
.UploadValidationSettings .MaxFileCount
BootstrapFileManagerSettingsUpload
.ValidationSettings .MaxFileCount
BootstrapUploadControl
.ValidationSettings .MaxFileCount
ASP.NET MVC Extensions UploadControlBinderSettings
.ValidationSettings .MaxFileCount
MVCxFileManagerSettingsUpload
.ValidationSettings .MaxFileCount
MVCxHtmlEditorAudioSelectorUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorAudioUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorDocumentSelectorUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorFileManagerUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorFlashSelectorUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorFlashUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorImageSelectorUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorImageUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorVideoSelectorUploadSettings
.ValidationSettings .MaxFileCount
MVCxHtmlEditorVideoUploadSettings
.ValidationSettings .MaxFileCount
MVCxUploadControl
.ValidationSettings .MaxFileCount
UploadControlSettings
.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