SuperUser Account posted on February 08, 2010 16:16

Ultra Video Gallery (UVG) turns your DotNetNuke (DNN) website into a mini-YouTube.
Not only can you upload your own videos you can also integrate YouTube or any other video Social Networking website that uses the YouTube method of sharing videos.
This article covers the file upload limitation in DNN to allow UVG to upload files to about 2GB.
This problem occurs because by default in IIS 7 enabled requestFiltering that have MaxAllowedContentLength property. It specifies, in bytes, the maximum length of content in a request. The default is 30000000 (approximately 30 megabytes.)
If you are getting a maxAllowedContentLength error message when trying to load videos over about 30Mb into UVG you could turning off request filtering in IIS7 entirely. That's if you run you own servers but it's better to keep the request filtering on but increase the maxAllowedContentLength .
This is how
- Go to c:\windows\system32\inetsrv\config\applicationHost.config and if not already done change
<section name="requestFiltering" overrideModeDefault="Deny" />
to
<section name="requestFiltering" overrideModeDefault="Allow" />
- then add to your application's web.config:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength ="2147482624" /> <!-- value in bytes : this is just less than 2GB-->
</requestFiltering>
</security>
<system.webServer>
That is it.