Send As SMS

Friday, December 10, 2004

Couldn't upload a 5MB file into the CMS Resource Gallery

Just yesterday, I was trying to upload a PDF document into our Resource Gallery of CMS2002 development instance. But IE kept throwing a Page Not Found error each time. Any PDF's under 5MB were fine, which made me think there must be a file size limit.
Sure enough there is, and to set your own, you need to modify your web.config (the one within your VS.Net Solution for your CMS site) to add the following tag and elements.

httpRuntime executionTimeout="3600" maxRequestLength="1024000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/

Which means the execution timeout will be 3600 seconds which is one hour, and the max file size to upload will be 51200KB which is 1/2GB.

If you don't have this xml tag already, add it just beneath the httpmodules tag...