我想上传一个文件,这是我的设置
<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,但我只能上传500 up。我尝试了多次设置,但没有得到任何解决方案。我该把它弄到哪里去呢?
发布于 2018-08-06 04:05:22
RCA:当我上传一个文件时,过了一段时间,我做了一个location.realod()来获取最新的数据。它在高达500 to的文件中运行良好,因为在这段时间里,上传了这么多文件大小,但是如果文件的大小更大,则需要时间并在成功之前调用location.realod()。
Solved: used callback and instead of loading full page, just call the getAll method.发布于 2018-08-02 08:55:06
请看一下https://stackoverflow.com/a/41118265/1498669,它详细描述了两个参数(IIS和WCF) (一个在KiloBytes中,另一个在Bytes中)。
https://stackoverflow.com/questions/34067244
复制相似问题