Increase Maximum File Upload Size in SharePoint
SharePoint 2013’s default file upload size is 250 MB! To upload large files, you have to change the “Maximum Upload Size” setting in SharePoint 2013 Central administration site.
How to increase file upload size in SharePoint 2013 / 2016?
The maximum upload size setting is configured per web application. To change the maximum upload size in SharePoint 2013, do the following:
- Browse to SharePoint 2013 Central Administration site
- Navigate to Application Management >>Manage Web Applications
- Select your web application and click on Web Application General Settings in the ribbon
- In the web application general settings page, you can set the “Maximum Upload Size” value to the value you desire (Say, you want to increase upload size to 500 MB!) and hit OK to save your changes.
This changes maximum upload size in SharePoint 2013. You can specify the maximum value up to 2 gigabytes (or 2047 megabytes as specified in Central Administration).
Set maximum upload file size in SharePoint 2013 using PowerShell:
SharePoint 2013 maximum upload file size can be set using PowerShell as well. Here is how:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
Function Set-MaxFileUploadSize($WebAppURL, $Size)
{
#Get the web applicatiin
$WebApp = Get-SPWebApplication | where {$_.url -eq $WebAppURL }
If($WebApp)
{
#Increase Maxium File upload size
$WebApp.MaximumFileSize = $Size
$WebApp.update()
write-host "Maximum File Upload Size has been updated to $($Size) MB!" -ForegroundColor Green
}
else
{
write-host "Could not find a web application with URL: $($WebAppURL)" -ForegroundColor red
}
}
#Call the function to set max file upload size
Set-MaxFileUploadSize "https://pmo.crescent.com" "500"
In some cases, You may have to adjust timeout, MaxRequestLength values in IIS and Web.config files. Here is the Microsoft KB article addressing this issue along with workarounds: https://support.microsoft.com/kb/925083