Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint file size limit

I've tried many tutorials online on how to increase the upload file size for a SharePoint document library with no luck.

Any ideas on how to increase the limit of file upload to a document library?

I've tried:

http://spsstuff.blogspot.com/2006/03/how-to-change-maximum-file-upload-size.html http://www.eggheadcafe.com/software/aspnet/29380049/50mb-upload-limit--help.aspx http://www.msexperts.org/blogs/mark/archive/2008/10/23/increasing-the-maximum-upload-limit-on-a-sharepoint-site.aspx

like image 452
LB. Avatar asked May 13 '09 21:05

LB.


2 Answers

I followed the 1st instruction from the 2nd link you provided:

  1. In SharePoint 3.0 Central Administration, Application Management tab, and Web application general settings configure the Maximum upload size to a maximum of 2047 MB.

and it worked fine.

Are you sure that you selected appropriate Web application when changing the maximum upload size?

changing the selected Web Application

like image 115
Marek Grzenkowicz Avatar answered Sep 28 '22 06:09

Marek Grzenkowicz


You can also change the limit in code

SPWebApplication oWebApplication = SPWebApplication.Lookup(new Uri("http://MyServer:989"));

oWebApplication.MaximumFileSize = 2000;

oWebApplication.Update();

(example taken from MSDN)

It will probably require admin credentials (SPSecurity.RunWithElevatedPrivileges(delegate) should handle this). Of course I'd rather use the configuration change method mentioned above by @Marek Grzenkowicz

like image 43
Marek Avatar answered Sep 28 '22 08:09

Marek