16

We are getting error when trying to upload a large size video file to our admin site. We are able to upload small size file without a problem, this error start happening when file size more then 10Mb, where as we already increase size by following configuration setting in web.config:

<httpRuntime executionTimeout="2400" maxRequestLength="102400"  useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" />

and Error message is when we upload larger file:

Error 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
4

2 回答 2

30

o 终于为这个问题找到了正确的解决方案,我们需要在 web 配置的安全性下添加 requestFiltering,以下是我在 web.config 中添加的代码,它开始允许我上传更大的文件:

<security>
       <requestFiltering>
               <requestLimits maxAllowedContentLength="104857600" />
       </requestFiltering>
</security>

谢谢!!!

于 2012-06-28T05:31:15.040 回答
2

在 web.config 中添加以下代码。

<system.web>
    <httpRuntime maxRequestLength="xxxxxx" />
  </system.web>

"xxx" is in KB. 默认为4096, 等于4MB.

于 2016-07-20T12:15:16.063 回答