Uploading Large Files to IIS / ASP.NET

When we upload a large file in using file upload control we got a how to over come this ? The Default size of Asp.Net is 4MB.


In Web.Config put this code.

//In IIS 7

<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
<requestFiltering><requestLimits maxAllowedContentLength="3000000000" /></requestFiltering>

The below code maxRequestLength measured in kilobytes.Here is an example with a 1GB request length and a 10 minute request timeout:

<httpRuntime maxRequestLength="1048576" executionTimeout="600" />  

The below code maxAllowedContentLength measured in bytes. 

<requestLimits maxAllowedContentLength="3000000000" />  

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: