Restrict file upload size using IIS

How is it possible to restrict the size of an uploaded blob? This probably is no longer valid:

And this is only for Docker?

Both should be valid for their respective web servers (IIS vs. NGINX). Can you please confirm that the old solution still works for IIS?

Adding the restriction like this to the web.config does not work for IIS.

<?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=".\Origam.ServerCore.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
	<system.web>
		<httpRuntime maxRequestLength="1024" executionTimeout="480" />
	</system.web>
  </location>
</configuration>

The web.config entry is different for .net core.

See

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.