Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 6-Nov-11 23:05pm
v2

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[^]
 
Share this answer
 
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1009715200"></requestLimits>
</requestFiltering>
</security>
<system.webServer>


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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900