Skip to main content

FileUploaderBuilder.MaxFileSize(Double) Method

Specifies the maximum file size (in bytes) allowed for uploading. Applies only if uploadMode is 'instantly' or 'useButtons'. Mirrors the client-side maxFileSize option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FileUploaderBuilder MaxFileSize(
    double value
)

Parameters

Name Type Description
value Double

The option value.

Returns

Type Description
FileUploaderBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().FileUploader()
    .MaxFileSize(1000000)
)
See Also