AsyncFileupload control is not working on server when uploading a large file

Category ASP.Net Sub Category AJAX ControlToolkit
Bookmark and Share
Files uploaded on live server using iis are not able to be above 80kb without an error occuring.
The solution is to add the following line into the web.config file.

Copy Code
<system.web> <httpRuntime executionTimeout="90" maxRequestLength="20000" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="8192" /> </system.web>

You need to specify requestLengthDiskThreshold value to whatever size you want to upload upto. it is default to 80Kb thats why you are able to upload till 80kb but not above.

requestLenghDiskThreshold specify the size of inputstream to buffer on disk.
Share the love
Bookmark and Share