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"?>
  <location path="." inheritInChildApplications="false">
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      <aspNetCore processPath="dotnet" arguments=".\Origam.ServerCore.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
		<httpRuntime maxRequestLength="1024" executionTimeout="480" />

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


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