By default, SharePoint allows for documents up to 50 MB to be uploaded to a site. Any larger than that size and an error is thrown. The maximum upload size is scoped at the web application level, so changes made to the upload size limit will affect all site collections for that web application. To change the maximum upload size:
- Browse to your Central Administration page
- Click Application Management tab
- Under SharePoint Web Application Management select Web Application General Settings
- On the Maximum Upload Size row modify the upload cap in megabytes
- Click OK when complete
So that should be it, right? In many cases it will be. However, you will encounter the situations where you are still receiving an error that the file size is too large even after modifying the Maximum Upload Size for the web application. This message is being caused by IIS, not SharePoint, and needs to be resolved by editing the Web.Config to reflect the new file size restrictions. To modify the Web.Config and increase the Maximum Upload Size:
- Browse to the web application’s home directory (On the server a default directory is c:\inetpub\wwwroot\wss\VirtualDirectories\<Website Directory>\)
- Backup the web.config file
- Edit the original web.config file with NotePad or other editor
- NOTE: Do NOT use WordPad, it will corrupt your web.config file
- Find the line: <httpRuntime maxRequestLength=”51200″ /> and replace 51200 with (<New Limit In MB> * 1024)
- For example, to increase the limit to 100 MB we would see <httpRuntime maxRequestLength=”102400″ />
- Save the web.config file and perform an IISRESET for the changed file to take effect