Raghu's SharePoint Corner: Increase FileUpload Size in Sharepoint

My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://www.sharepointcolumn.com
and update your bookmarks.

May 19, 2009

Increase FileUpload Size in Sharepoint

This post deals with how to increase the file upload size in a sharepoint (i.e either in document library or as list attachment). Even after increase in the document upload size you have to increase the time out size also. Given below are the steps to increase the file upload size and how to increase the time out exception.

Increase the maximum upload size

1. Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.
2. Under Virtual Server Configuration, click Configure virtual server settings. On the Virtual Server List page, click the virtual server that you want to change.
On the Virtual Server Settings page, under Virtual Server Management, click Virtual server general settings.
3. Under Maximum upload size, type the maximum file size in megabytes that you want, and then click OK. You can specify a maximum file size up to 2,047 megabytes.
Back to the top

or
1. Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.
2. Click on Application Management tab, click Web Application General Settings under Sharepoint Web Application Management.
3. Maximum Upload size is 50 you can increase this upload size according to your requirement but the maz size is 2GB

Add the executionTimeout value

1. Use Notepad to open the Web.config file.

2. By default, this file is in the following location:
Program Files\Common Files\Microsoft Shared\Web server extensions\12\TEMPLATE\LAYOUTS
3. Add the executionTimeout value that you want. For example, replace the value as follows.
Existing code


<location path="upload.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>


Replacement code


<location path="upload.aspx">
<system.web>
<httpRuntime executionTimeout="999999" maxRequestLength="2097151" />
</system.web>
</location>


4. After you change the file, click Save on the File menu.
5. Use Notepad to open the Web application Web.config file. By default, this file is in the following folder: C:\Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder
6.Change the following line in the file.
Existing line


<httpRuntime maxRequestLength="51200" />


Replacement line


<httpRuntime executionTimeout="999999" maxRequestLength="51200" />


7. After you change the file save and exit.

No comments: