Skip to main content
Skip table of contents

Allow files larger than 30MB

By default IIS sets a file size limit of 30MB for requests.

You can override this setting using the web.config file that sits in the root of the EzeScan WebApps installation.

Insert the following code block under the system.webServer node.

maxAllowedContentLength

XML
<security>
    <requestFiltering>
        <!-- This will handle requests up to 100MB -->
        <requestLimits maxAllowedContentLength="109051904" />
    </requestFiltering>
</security> 


Below is an example web.config that will now allow files of 100MB

web.config

XML
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\EzeScan.WebApps.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
       <security>
        <requestFiltering>
          <!-- This will handle requests up to 100MB -->
          <requestLimits maxAllowedContentLength="109051904" />
        </requestFiltering>
      </security>
    </system.webServer>
  </location>
</configuration>

Simply alter the maxAllowedContentLength value to allow even larger files (up to 4GB which would be 4294967295 bytes).


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.