Skip to main content

RichEditFileManagerValidationSettings.MaxFileSize Property

Gets or sets the maximum size of an uploaded file within the FileManager embedded into certain built-in dialogs.

Namespace: DevExpress.Web.ASPxRichEdit

Assembly: DevExpress.Web.ASPxRichEdit.v24.1.dll

NuGet Package: DevExpress.Web.Office

Declaration

[DefaultValue(31457280L)]
public override long MaxFileSize { get; set; }

Property Value

Type Default Description
Int64 31457280

An Int64 value that specifies the maximum file size, in bytes.

Property Paths

You can access this nested property as listed below:

Object Type Path to MaxFileSize
RichEditDocumentSelectorUploadSettings
.ValidationSettings .MaxFileSize

Remarks

By default, the FileManagerSettingsUpload.UseAdvancedUploadMode (accessed via the SettingsDocumentSelector.UploadSettings) is set to true, and the Advanced Upload Mode is used by RichEdit to upload files. In this mode, use the MaxFileSize property to specify the maximum size for uploaded files.

To ensure that file uploading works properly in advanced mode, ASPxUploadProgressHttpHandler should be registered in the web.config file. You can register it manually (see the ASPxUploadProgressHttpHandler topic) or use the DevExpress Project Converter that registers the handler in the web.config file automatically when it converts a project.

Note

This property is not in effect for dialogs in the rich edit (for example, the “Insert Image” dialog).

See Also