Increase Upload Size & request timeout period

First, increase the Maximum Upload Size for a specific web application.
  • Go to the Central Administration > Application Management > Web Application General Settings
  • Specify the new maximum upload size for your webapplication. For now, we are setting it to 256MB. It could be even set upto 2GB.
Your second step should be to try increasing your default chunk size of large files by trying this STSADM command:
Stsadm.exe –o setproperty –pn large–file–chunk–size –pv   
  •     This basically denotes the chunk of data that can be read from SQL Server at one time.
  •     The -pv which determines the property value stands for the upload size in bytes (B).
  •     It could be set to a maximum of 2GB i.e. (2,147,483,648 B).
  •     Do an IISRESET
Next, in web.config file of your particular web application, under the httpRuntime tag in system.web section, increase the upload limit to match the value that you set earlier in central administration. You also need to add the execution timeout to allow more time before the upload operation times out as shown in the example below:
httpRuntime executionTimeout="300" maxRequestLength="256000"
where
  •     300 means 5 minutes as execution time out
  •     256000 allows uploading 256 MB files.
After the above changes, MOSS would allow files of more than 50 MB to get uploaded easily. Incase you still face challenges, check if the file you are trying to upload, is it a blocked file type e.g. EXE, DLL, etc.

Comments

Old post but still relevant. In case someone else finds this, the maximum request length is 2097151. Here is an example of setting it to the max size and an hour timeout

Popular Posts

SharePoint Interview Questions and Answers

Download Infopath Form Templates

How to get current logged user information using JavaScript ?

Steps to set Form based authentication (FBA) for SharePoint 2010

SharePoint Interview Questions and Answers II

Get List Items - JavaScript

Change Language for current user with JSOM in SharePoint Online

Cross Site List Rollup Web Part for SharePoint 2010

Hide Recently Modified Items

SharePoint 2010 CSS Chart