This week I have been asked a few questions about the default upload limit that SharePoint uses.
First question was:
> Is there a file size limit for uploading files into SharePoint. If there is a limit, does SharePoint give you a warning advising that the file is too big?
Ok, easy question, Yes. The default file upload is 50MB. This can be increased to any _reasonable_ site required. I have personally tested up to 300 MB without any issues.
With regard to the warning message, unfortunately not. It usually lets you upload and when you hit the limit it bombs out and then tells you that the file was too bit.
This is understandable because the web browser can't tell sharepoint how big the file is until it has been uploaded, so a slight inconvenience.
Another unfortunate gotcha is the "Multi Upload" tool.. lets say the default upload limit of 50 MB is in place and I have 3 files all of 20 MB each. You might think cool 20 MB is less than 50 MB so I am fine to upload. Well this is the case if you use Explorer view or the Single file upload, but if you use the Multi Upload tool then you need to understand that the files are streamed up to the server as one continuous upload, so hence in this scenario the stream will be 60MB in size.. and of course you will get to 50 MB uploaded before the upload errors out.
The second question was:
> I have changed the Default upload limit in Central Admin but we are still getting a limitation on the file upload size. What gives?
Error Message:
Unhandled Exception: Microsoft.SharePoint.SPException: The form submission cannot be processed because it exceeded the maximum length allowed by the Web administrator. Please resubmit the form with less data.
|
Well because SharePoint is built on top of ASP.Net it inherits the same technical limitations and configurations. If you take a look in the Web.Config file there should be the following entry:
<httpRuntime maxRequestLength="51200" />
If this entry is present then you will need to change this value as well. More detail in KB822059.