Maximum file size per extension in SharePoint 2013

Summary: This blog post describes how to use a new feature to set a maximum file size per extension in SharePoint 2013.

As most of you know, you are able to set the maximum upload size in SharePoint 2010 and SharePoint 2013 in the General settings for each Web Application.
The default maximum upload size for SharePoint 2013 is 250MB.

Maximum upload size

Maximum file size per file extension
A new cool feature that I really like in the preview is the possibility to add exceptions for certain file types.
By default, the .one extension has a maximum upload size of 1024MB (1GB)

Now what if we want to add another exception. Let’s say I want to allow .wmv files up to 1GB as well.
We can use PowerShell to add this extension. So far, I have not found a GUI interface to do the same:

$WebApp = Get-SPWebApplication "http://portal.sharepointrelated.com"
$WebApp.MaximumFileSizePerExtension.Add("wmv",1024)
$WebApp.Update()

To see all current maximum file sizes per extension:

$WebApp = Get-SPWebApplication "http://portal.sharepointrelated.com"
$WebApp.MaximumFileSizePerExtension


Current limits

Removing a maximum file size for an extension

$WebApp.MaximumFileSizePerExtension.Remove("wmv")
$WebApp.Update()

This will remove the wmv again, so the maximum allowed upload size for .wmv files will be 250MB again.

New maximum upload limit

3 thoughts on “Maximum file size per extension in SharePoint 2013

  1. Pingback: Maximum file size per extension in SharePoint 2013 « SharePoint ... | SharePoint 2013 | Scoop.it

Leave a Reply

Your email address will not be published. Required fields are marked *