Skip to main content

SpreadsheetFileManagerValidationSettings.MaxFileSize Property

Gets or sets the maximum size of an uploaded file.

Namespace: DevExpress.Web.ASPxSpreadsheet

Assembly: DevExpress.Web.ASPxSpreadsheet.v24.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.

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