首页 > Web开发 > 详细

ASP.NET 大文件上传

时间:2015-11-16 12:06:58      阅读:260      评论:0      收藏:0      [点我收藏+]

 

一 web.config 配置:

1).

<system.webServer>
<security>
<requestFiltering>
<!-- maxAllowedContentLength上传大小限制的值(单位:byte) -->
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>

2).

<system.web>
  <httpRuntime executionTimeout="3600" maxRequestLength="1048576"/>
  <!--maxRequestLength:上传的大小,单位KB; executionTimeout:设置超时时间,单位:秒。(默认是90秒) -->
</system.web>

 

二.详细代码:

http://www.asp.net/web-api/overview/advanced/sending-html-form-data,-part-2

ASP.NET 大文件上传

原文:http://www.cnblogs.com/shouwu/p/4968331.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!