In this article, I will explain about how to resolve that problem!
We need to change configurations at two places.
- Web.Config :-
- We need to make change for below two important thing.
- NOTE: This change is very important when you upload document to SharePoint document library by using programmatically or from SharePoint Object Model Code by using Asp.NET File Upload control or HTML File Upload.
i. maximumRequestLengh: What is maximum size of File, a user can upload.
ii. Execution Timeout: it is very important because if it is less than upload time, upload of file operation can fail.
- Open the Web.config file of this webapplication by going to Local Drive:\Inetpub\wwwroot\wss\VirtualDirectories\SharepointApplicationPortNumber(example 80)
- Find < httpRuntime and replace that line with the following line.
- Go to SharePoint 3.0 Central Administration -> Application Management
- Under “SharePoint WebApplication Management”, we need to go into “WebApplication General Settings”.
- Change the “SharePoint Web application” in which we need to make changes.
- There is option called “Maximum Upload Size” - 50 MB is default value, make it 2047 value.
- Click OK.
Now user can upload more size of documents into SharePoint site.
Disha Shah