Home > ASP.Net > Increase file Uploaded size

Increase file Uploaded size

By Default, we can’t upload files with size more the 4Mb, because it’s already configured in the machine.web file. as follows:
<httpRuntime maxRequestLength =”4096″/>  where 4096 in kb

Although you can overload these settings in the web.config file

add in the <system.web>

<httpRuntime maxRequestLength =”5120″/>

Which allows uploading files up to for example 5120 = 5Mb.

Hope this helps

Good Luck

Categories: ASP.Net
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: