Alter file limit size accepted by IIS

Dump request filtering settings for the “Default Web Site” by running
%windir%\system32\inetsrv\appcmd.exe list config “Default Web Site” -section:system.webServer/security/requestFiltering  /config:*

(adjust the name of the site to fit your environment). Check the maxAllowedContentLength value.

To change the value to let’s say 50,000,000 you could run
%windir%\system32\inetsrv\appcmd.exe set config “Default Web Site” -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:”50000000″ /commit:apphost

Also on the client machine you’ll need to do this as the default size limit is 50Mb

Customize the following registry entry to resolve this issue:

  1. Click Start, type regedit in the Start Search box, and then press ENTER.
  2. Open the registry editor (using regedit on the Windows Start menu)
  3. Locate and click the following registry subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
  4. Select DWORD FileSizeLimitInBytes.
  5. Go to Edit > Modify.
  6. In the Value data box, enter 4294967295 and then click OK.
    This sets the maximum you can download from the WebDAV to 4 GB at one time, where 4 GB is the maximum value supported by Windows OS.
  7. Exit Registry Editor and restart the Web Client Service.
Leave A Comment