Wednesday, November 4, 2009

How to upload big size of documents to SharePoint site

When we upload documents to SharePoint Document Library from SharePoint GUI or from Customized web part if our document size is more than 50 MB, it will not allow us to upload the documents.

In this article, I will explain about how to resolve that problem!

We need to change configurations at two places.
  1. 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.
2. Change in Central Administration site
  • 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.
We are done!

Now user can upload more size of documents into SharePoint site.

Disha Shah

4 comments:

  1. praveen kumar kesaNovember 6, 2009 at 1:29 AM

    Hi

    It Is nicwe

    ReplyDelete
  2. Hi disha,
    how to import the dll in the Services i.e[ControlPanel-AdministrationTools]
    I tried but did not find any option.Can u help me this regard.
    My purpose to invoke the dll is I have a piece of code in webservice using c# which should get triggered dynamically once for a day basing on the present date.

    ReplyDelete
  3. Hi Santosh

    "My purpose to invoke the dll is I have a piece of code in web service using c# which should get triggered dynamically once for a day basing on the present date."
    My First Question
    This is something you want to achieve with SharePoint?

    If yes you can also do same thing with Custom Timer Job in SharePoint.
    Please refer this link
    http://msdn.microsoft.com/en-us/library/cc406686.aspx

    If not tell me with which technology you want to achieve your requirement?

    Hope this helps
    Disha Shah

    ReplyDelete
  4. hi,
    Thanks for the response.But I want to achieve using the C#.Net and keep the dll in the Services so that it gets triggered automatically whenever I turn on my PC.
    If you can help me in dis regard that will be gr8.

    ReplyDelete