上传500 MB的Excel文件 [英] Upload 500 MB excel file

查看:102
本文介绍了上传500 MB的Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在asp.net中开发一个页面,我的客户要在其中上传大小为500 MB左右的excel文件.
我尝试通过从web.config增加MaxRequestLenght属性来尝试,但是它没有用.
请提出建议.

Hi all,
I am developing a page in asp.net in which my client want to upload excel file whose size will be around 500 MB.
I have tried by increasing MaxRequestLenght property from web.config but it didn''t work.
Please suggest.

推荐答案

巨大的上传文件(即大于4Mb的文件)是FileUpload控件的问题,因为它会在出现DOS攻击时尝试阻止它们. br/> 修复起来并不是很困难,但是这里对此问题进行了很好的讨论: http ://www.infoq.com/news/2008/01/handling-large-uploads [
Huge uploads (i.e. anything larger than 4Mb) is a problem with the FileUpload control, as it tries to prevent them in case of DOS attacks.
It''s not too difficult to fix, but there is a good discussion of the problem here: http://www.infoq.com/news/2008/01/handling-large-uploads[^]


< system.webServer>
< security>
< requestFiltering>
< requestLimits maxAllowedContentLength ="1009715200"></requestLimits>
</requestFiltering>
</security>
< system.webServer>


这将允许您上传所需的最大大小.
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1009715200"></requestLimits>
</requestFiltering>
</security>
<system.webServer>


this will allow to upload maximum size as much as you want.


这篇关于上传500 MB的Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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