.net core 上传文件大小限制 webconfig

时间:2021-07-06 15:41:48

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\TAX.WebAPI.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
<security>

<requestFiltering>

<requestLimits maxAllowedContentLength="1073741822" /><!-- 1GB-->

</requestFiltering>

</security>
</system.webServer>
</location>

</configuration>
<!--ProjectGuid: B5091FF6-AC7A-47D5-8BF3-8604AECA5211-->