All Collections
System
File Transfer Limits
File Transfer Limits
Configure your file transfer settings in Naverisk.
Colin Little avatar
Written by Colin Little
Updated over a week ago

Introduction

You can customize the maximum file size permitted for transfer in Naverisk by altering a few settings in IIS and Naverisk. By changing the file transfer limit, you can affect the sizes of files permitted for upload in Script Packs and Documents. Further configuration made to settings in the config file for the Naverisk website can change the sizes of files permitted for transfer in File Explorer.

1.0 Increasing File Transfer Sizes

Script Packs & Documents

1.1 Max Query String

Update the web.config on the Naverisk website folder and change the maxQueryString.

  • <requestLimits maxQueryString="81920"/>

1.2 Max Field Length and Max Request Bytes

Update the Https.sys registry settings for Windows, the MaxFieldLength and MaxRequestBytes to 81920

Screenshot example:

Restart the HTTP service and all related ISS services.

2.0 Increase the Permitted File Transfer Size

File Explorer

First follow the steps outlined in section 3 below, then make the following changes:

Navigate to your Naverisk Website folder on the Naverisk server.

Inside that folder, look for the file “Web.config” and open it up using a text editor of your choice. After you have done this, you will need to add two extra lines to web.config file in the <AppSettings> part of the file.

Those two keys are as follows:

  1. <add key="FileExplorerMaxUploadSize" value="83886080"/>

  2. <add key="FileExplorerMaxDownloadSize" value="83886080"/>

The Value stated here is currently our default limit of 8 Megabytes, the value is in Bytes.

Important note:-

These 3 settings in THE web config file must be correct to allow the files to be successfully transferred.

<add key="FileExplorerMaxUploadSize" value="52428800"/>

<add key="FileExplorerMaxDownloadSize" value="52428800"/>

<system.web>

<httpRuntime executionTimeout="800" maxRequestLength="5097150" maxQueryStringLength="51200" encoderType="HtmlAttributeEncodingNot" requestValidationMode="2.0" targetFramework="4.8"/>

<sessionState mode="InProc" cookieless="UseCookies" timeout="20"/>

<webServices>

<protocols>

<system.webServer>

<security>

<requestFiltering>

<requestLimits maxQueryString="32768" maxAllowedContentLength="50000000"/>

</requestFiltering>

</security>

Once you have changed this to the value you want, save the configuration, and restart your Naverisk Site Controller.

 For IIS version 7 or greater also change the following entry in the "Web.config" file

<request.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="800000000″/>
</requestFiltering>
</security>
</system.webServer>

Note: maxAllowedContentLength is in bytes.

Next you will need to change the limits of IIS.

In our experience this needs to be added in the same line as maxAllowedContentLength.

i.e. <requestLimits maxAllowedContentLength="800000000" maxQueryString="81920" />

Also add the following code to <system.web> in the web.config file in the web application's folder:

<httpRuntime
executionTimeout="800"
maxRequestLength="81920" />

This allows a file upload of 81920 kilobytes which will time out after 800 seconds, or roughly 13 minutes.

3.0 Adjusting File Size Limits in IIS 8

In IIS 8, the web application will reject any file that is larger than 30 MB. This is a default limitation of IIS. You can increase the maximum file size by adding the following code to <system.webServer> in the ApplicationHost.config (C:\Windows\system32\inetsrv\config\ApplicationHost.config) file:

<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="800000000″ />
</requestFiltering>
</security>

With the above maxAllowedContentLength, users can upload files that are 800,000,000 bytes is size. This setting will work right away without restart IIS services.

4.0 Adjusting File Size Limits in IIS 7

In IIS 7, the web application will reject any file that is larger than 30 MB. This is a default limitation of IIS. You can increase the maximum file size by adding the following code to <system.webServer> in the web.config file:

<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”800000000″ />
</requestFiltering>
</security>

With the above maxAllowedContentLength, users can upload files that are 800,000,000 bytes in size. This setting will work right away without restarting IIS services.

5.0 Adjusting File Size Limits in earlier Versions of IIS

In the older IIS, add the following code to <system.web> in the web.config file in the web application's folder:

<httpRuntime
executeTimeout="100000"
maxRequestLength="3000000" />

This allows a file upload of 3,000,000 kilobytes which will time out after 100,000 seconds, or 27.8 hours.

Did this answer your question?