We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

IIS WebDAV Maximum Size LimitRSS

1 reply

Last post Feb 01, 2021 02:12 AM by samwu

  • IIS WebDAV Maximum Size Limit

    Jan 29, 2021 09:17 PM|imran7799|LINK

    Hi Guys,

    I have recently setup a WebDAV server on my Windows 10 Pro machine. I am unable to upload the larger size files to the server. The maximum size worked for me is 21MB. I tried 41MB and it failed

    After doing some research, I found this registry values (from article below). This is suppose to set the limit to 4GB. I changed this values rebooted my computer, but still having the same issue. Is there any other settings I am missing?

    https://docs.druva.com/Knowledge_Base/inSync/Troubleshooting/WebDAV_download_fails_with_file_size_exceeds__the_limit_error

  • Re: IIS WebDAV Maximum Size Limit

    Feb 01, 2021 02:12 AM|samwu|LINK

    Hi imran7799,

    imran7799

    I have recently setup a WebDAV server on my Windows 10 Pro machine. I am unable to upload the larger size files to the server. The maximum size worked for me is 21MB. I tried 41MB and it failed

    After doing some research, I found this registry values (from article below). This is suppose to set the limit to 4GB. I changed this values rebooted my computer, but still having the same issue. Is there any other settings I am missing?

    The default value for uploading binary files via WebDAV is 4MB (this is an IIS setting). To increase the size limit for uploading binaries via WebDAV you need to adjust the web.config file for WebDAV.

    Procedure

    1.Open the WebDAV web.config configuration file, located by default in the webdav subfolder of %TRIDION_HOME%, in a text editor.

    2.Find or create a section called <httpRuntime> in the <system.web> section, and give it an attribute called maxRequestLength, set to the number of bytes you want to set as your maximum. For example, to raise the 4 MB limit to 200 MB, ensure the presence of the following element:

    <httpRuntime maxRequestLength="209715200"/>

    3.In the <system.webServer> section, find or add a <security> section and inside it, find or add a <requestFiltering> section. Again inside this element, insert a requestLimits element with a maxAllowedContentLength attribute set to your maximum upload size in bytes. For example, the following fragment again sets the maximum to 200 MB:

    <system.webServer>
        <security>
           <requestFiltering>
    	   <requestLimits maxAllowedContentLength="209715200"/>
           </requestFiltering>
        </security>
    </system.webServer>

    4.Save and close the web.config file.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >