0
votes

I have some large video files that are causing a 404 sync error. I know it's due to the size. I've done some digging and found this great article: http://www.mcbeev.com/Blog/September-2012/Kentico-CMS-Quick-Tip-Content-Staging-and-Large-Files

My media library is in /kff/media with the appropriate subfolders for the media libraries.

I have added the following to my web.config. Right now, my biggest file is around 90meg, but i'm expecting larger video files. But i'm still getting errors.

  <!-- 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 -->
2

2 Answers

2
votes

I ran into this problem a few days back and this is what I exactly did to resolve the problem at hand. The Following link and a screen shot will help you

Staging Large files

Screen shot helping explain everything clearly. enter image description here

Also on your project web.config file you need to check that you are not limited by how big files you can stage using Kentico staging. This parameter will override whatever settings you have in terms of files size restriction.

<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.

1
votes

You need to update your main web.config for this, not a web.config in the media directory.

You'd set your maxRequestLength = 100000. I should mention the default value of 2097152 is over 2GB so you should be fine. Or you can use a simple converter to do the work.