Overblog Follow this blog
Edit post Administration Create my blog
Balavardhan Reddy Narani

How to upload larger files in asp.net

March 7 2009 , Written by Balavardhan Published on #ASP.Net

Upload larger files in asp.net

By default asp.net application did not upload the files more than 4.5 mb or 4 mb at a time. For this purpose You have to add following <<http runtime>> tag in web.cofig of web site.

<httpRuntime
executionTimeout=“90“
maxRequestLength=“20096“
useFullyQualifiedRedirectUrl=“false“
minFreeThreads=“8“
minLocalRequestFreeThreads=“4“
appRequestQueueLimit=“10000“;
/>

In the above web.config section, you have to change two setting.
1). MaxRequestLength (Here you mention the size limit of file , bydefault it is 4 mb)
2). appRequestQueueLimit (it is the time when application take time to upload the request.)

Share this post

Repost 0
To be informed of the latest articles, subscribe:

Comment on this post