大文件上的 Kentico 同步 404 错误
Kentico sync 404 error on large files
我有一些大型视频文件导致 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,所以你应该没问题。或者您可以 use a simple converter 完成这项工作。
我 运行 几天前遇到了这个问题,这正是我解决手头问题的方法。以下 link 和屏幕截图将对您有所帮助
屏幕截图有助于清楚地解释一切。
同样在您的项目 web.config 文件上,您需要检查您是否不受使用 Kentico 暂存可以暂存的文件大小的限制。此参数将覆盖您在文件大小限制方面的任何设置。
<add key="CMSMediaFileMaxStagingSize" value="102400" />
You can also configure the limits on the source server by setting the
maxRequestLength and maxAllowedContentLength attributes inside the
main and sections of the web.config
(NOT within a specific section). This affects all types of
requests, not just the staging service.
我有一些大型视频文件导致 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,所以你应该没问题。或者您可以 use a simple converter 完成这项工作。
我 运行 几天前遇到了这个问题,这正是我解决手头问题的方法。以下 link 和屏幕截图将对您有所帮助
屏幕截图有助于清楚地解释一切。
同样在您的项目 web.config 文件上,您需要检查您是否不受使用 Kentico 暂存可以暂存的文件大小的限制。此参数将覆盖您在文件大小限制方面的任何设置。
<add key="CMSMediaFileMaxStagingSize" value="102400" />
You can also configure the limits on the source server by setting the maxRequestLength and maxAllowedContentLength attributes inside the main and sections of the web.config (NOT within a specific section). This affects all types of requests, not just the staging service.