Share via


SPWebApplication.MaximumFileSizePerExtension property

The size, in MB, of the largest file size that can be uploaded for a specific file extension.

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

Syntax

'Declaration
Public ReadOnly Property MaximumFileSizePerExtension As IDictionary(Of String, Integer)
    Get
'Usage
Dim instance As SPWebApplication
Dim value As IDictionary(Of String, Integer)

value = instance.MaximumFileSizePerExtension
public IDictionary<string, int> MaximumFileSizePerExtension { get; }

Property value

Type: System.Collections.Generic.IDictionary<String, Int32>
A mapping of file extensions to value containing the maximum allowed file size (in MB) for that extension. If an extension is not present, the value in MaximumFileSize is used.

Remarks

The MaximumFileSizePerExtension property applies only to files, and not to the content that is posted through forms. However it applies as a separate limit to data supporting the file such as thumbnails, prerendered images, and coauthoring data.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace