Click here to Skip to main content
15,921,295 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everybody , i have been having a problem with the file upload , whenever i post a large file into my FileUpload it stucks when i request the content length any thought how i would deal with this and thanks
Posted
Comments
JoCodes 13-Jan-14 22:52pm    
Whats teh code you tried and the issue you are facing?Is it throwing error?Also , whats the size of the "large file"??/

You can configure to increase the file size as well as the timeout attributes accordingly.

Refer

http://blogs.msdn.com/b/prashant_upadhyay/archive/2011/07/13/large-file-upload-issue-in-asp-net.aspx[^]
 
Share this answer
 
I was also facing the same error...
The below code solved the problem

Add this in your web.config

C#
<httpruntime maxrequestlength="2097151" executiontimeout="900000" usefullyqualifiedredirecturl="false" minfreethreads="8" minlocalrequestfreethreads="4" apprequestqueuelimit="100" /> 
 
Share this answer
 
v2

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