Maximum file size per extension in SharePoint 2013


This article applies to SharePoint 2013 preview (Buildversion: 15.0.4128.1014)

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.

image

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

image

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.

image

About these ads

One Response to 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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: