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

SpreadsheetFileManagerValidationSettings.MaxFileSize Property

Gets or sets the maximum size of an uploaded file.

Namespace: DevExpress.Web.ASPxSpreadsheet

Assembly: DevExpress.Web.ASPxSpreadsheet.v18.2.dll

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
SpreadsheetFileManagerUploadSettings
.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 Spreadsheet 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.

See Also