如何设置web.config以允许ASP .NET应用程序上传大文件(至少10GB)? [英] How setting up web.config to allow uploading of large files(atleast 10GB) by ASP .NET applications ?

查看:77
本文介绍了如何设置web.config以允许ASP .NET应用程序上传大文件(至少10GB)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< system.webserver>

< security>

< requestfiltering>< requestlimits maxallowedcontentlength =262144000> <! - maxAllowedContentLength以字节为单位。默认为30,000,000 - >







我尝试过:



< system.webserver>

< security>

< requestfiltering>< requestlimits maxallowedcontentlength = 262144000 > <! - maxAllowedContentLength以字节为单位。默认为30,000,000 - >


解决方案





 <   configuration  >  
< system.web >
< httpruntime maxrequestlength = xxx / >
< / system.web >
< / c onfiguration >





值应为KB


<system.webserver>
<security>
<requestfiltering><requestlimits maxallowedcontentlength="262144000"> <!-- maxAllowedContentLength is in bytes. Defaults to 30,000,000 -->



What I have tried:

<system.webserver>
<security>
<requestfiltering><requestlimits maxallowedcontentlength="262144000"> <!-- maxAllowedContentLength is in bytes. Defaults to 30,000,000 -->

解决方案

Hi,

<configuration>
  <system.web>
    <httpruntime maxrequestlength="xxx" />
  </system.web>
</configuration>



the value should be in KB.


这篇关于如何设置web.config以允许ASP .NET应用程序上传大文件(至少10GB)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆