How to Increase the file upload size in SharePoint 2013 using PowerShell and Central Administration


Sathish Nadarajan
SharePoint MVP
Published On :   17 Oct 2015
Visit Count
Today :  1    Total :   8837
Plan, Migrate, Secure, Report
SharePoint & Office 365 Tool. Simple & Easy to Use. 15-Day Trial!

SharePoint Office 365 Tool
Simple & Powerful Tool for Migration, Security & Reporting. Free Trial


In this article, let us see how to modify the maximum file upload size in SharePoint 2013 using PowerShell and Central Administration. Especially, this will be very useful, when we are using the SharePoint Client Object Model. (CSOM). Usually CSOM restricts to 3 MB by default. If we want to upload a larger file using CSOM, sharepoint does not allow that.

First let us see how to do that using PowerShell.

Open the PowerShell Console with Admin credentials and execute the below script.

 $ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
 $ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 5242880
 $ws.ClientRequestServiceSettings.MaxParseMessageSize  = 5242880
 $ws.Update()
 

The above will increase the file size to 512 MB.

Now, let us see the same thing in Central Admin.

1. Go to Central Admin

2. Go to Manage Web Applications

3. Select the WebApplication

4. Click on the General Settings.

5. Modify the Maximum Upload Size on the popup.

 

clip_image002

Happy Coding,

Sathish Nadarajan.

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Categories

KWizCom Scan