in

Dot Net Mafia

Group site for Tulsa area .NETdevelopers, with blogs dealing with (usually) .NET, SharePoint, and other Microsoft products, as well as some discussion of general programming related concepts.

Corey's .NET Tip of the Day

Bringing you the latest time saving tips for SharePoint, MOSS 2007, ASP.NET, LINQ, and Visual Studio 2008

Changing the maximum file upload size in SharePoint

The default file upload size in SharePoint is 50 MB.  Sometimes, you may have users that need to upload documents that are larger.  This is quite easy to change.  Simply go to Central Administration -> Web Application General Settings.  Select the Web Application you want to change, and you will see a textbox to specify the maximum upload size.  Before I remembered to look here, I tried changing it the old ASP.NET way, by changing the following line in the web.config.

<httpRuntime maxRequestLength="51200" />

Interestingly, the file size specified here is also 50 MB, but changing it here does not allow you to upload a larger file into a document library.  I also figured I might have to change it to match whatever I had set in SharePoint but you don't.  You can leave it the same and upload a 100 MB file into SharePoint just fine (provided you changed the setting).  So from what I can tell SharePoint does not use this setting at all and it would only apply if you had written a custom upload form using ASP.NET.

Published Jun 30 2008, 12:40 PM by CoreyRoth
Filed under:

Comments

No Comments

About CoreyRoth

Corey Roth is a MOSS Consultant for Stonebridge, Inc. specializing in clients in the Energy Sector.
2008 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems