我有一些较大的视频文件导致404同步错误。我知道是由于尺寸。我做了一些挖掘,发现了这篇很棒的文章:http : //www.mcbeev.com/Blog/September-2012/Kentico-CMS-Quick-Tip-Content-Staging-and-Large-Files
我的媒体库位于/ kff / media中,带有与该媒体库相应的子文件夹。
我已将以下内容添加到我的web.config中。现在,我最大的文件约为90兆,但我希望有更大的视频文件。但是我仍然遇到错误。
<!-- Sales Force Resourse Site Start -->
<location path="KFF/media">
<system.web>
<httpRuntime executionTimeout="2400" maxRequestLength="2097151"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648"/>
</requestFiltering>
</security>
</system.webServer>
</location>
<!-- Sales Force Resourse Site End -->
为此,您需要更新主web.config,而不是媒体目录中的web.config。
您将您的maxRequestLength
= 100000设置。我要提一下2097152的默认值超过2GB,所以应该没问题。或者,您可以使用简单的转换器来完成工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句