我正在尝试上传文件,这是我的设置
<system.web>
<compilation debug="true" />
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
requestLengthDiskThreshold="256"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000"
enableKernelOutputCache="true"
enableVersionHeader="true"
requireRootedSaveAsPath="true"
enable="true"
shutdownTimeout="90"
delayNotificationTimeout="5"
waitChangeNotification="0"
maxWaitChangeNotification="0"
enableHeaderChecking="true"
sendCacheControlHeader="true"
apartmentThreading="false"
/></system.web>
这里我将 maxRequestLength 设置为 4MB,但我最多只能上传 500kb。 我尝试了多种设置,但无法获得任何解决方案。 我应该在哪里更改才能使其正常工作?
最佳答案
请看https://stackoverflow.com/a/41118265/1498669其中详细描述了两个参数(IIS 和 WCF)(一个以千字节为单位,另一个以字节为单位)。
关于c# - httpRuntime 元素的 System.web 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34067244/