简体   繁体   中英

System.web setting for httpRuntime Element

I am trying to upload a file, here is my setting

<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>

Here I set maxRequestLength to 4MB, but I am able to upload up to 500kb only. I have tried with multiple settings but couldn't get any solution. Where should i chage to make it work ?

请查看https://stackoverflow.com/a/41118265/1498669 ,其中详细描述了两个参数(IIS和WCF)(一个以千字节为单位,另一个以字节为单位)。

RCA: When I was uploading a file, after some time I was doing a location.realod() to get the latest data. It was working fine with up to 500kb file because in that time this much file size was getting uploaded, but If size is bigger It was taking time and before It succeeds location.realod() was getting called.

Solved: used callback and instead of loading full page, just call the getAll method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM