SPWebApplication.MaximumFileSize property

Gets or sets the size of the largest file that can be uploaded.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property MaximumFileSize As Integer
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Integer

value = instance.MaximumFileSize

instance.MaximumFileSize = value
public int MaximumFileSize { get; set; }

Property value

Type: System.Int32
A 32-bit integer containing the maximum file size (in MB). The default value is 50.

Remarks

The MaximumFileSize property applies only to files, and not to the content that is posted through forms.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace