Asp.net: Increase the maximum upload file size - Free Asp.Net,MVC,AngularJs,Jquery,Javascript,Sql Server,WCF,Entity framework snippets and tutorial

Asp.net: Increase the maximum upload file size

In this article I am going to explain how to Increase the maximum upload file size in Asp.net.

Description:
Default maximum size to upload file is 4 MB (4096KB) and execution time is 110 seconds. if we are uploading files larger than 4 MB we get an error “Maximum request length exceeded.”

Implementation:
Add the below given line in web.config of project/website.

<system.web>
   <httpRuntime maxRequestLength="51200" executionTimeout="9999" />
</system.web>

MaxRequestLength: Maximum file upload size. Here file upload size is increases to 50 MB.
 1 MB = 1024 KB and 50*1024 = 51200

ExcutionTimeout : Maximum number of seconds taken by page to upload. If process is not completed in given seconds then it will be terminated.


  In this article we have learn How to increase the maximum upload file size in Asp.netI hope you enjoyed this article. 

What do you think about this article?

If you found this article useful, please share and follow on Facebook, Twitter, Google Plus and other social media websites. To get free updates subscribe to newsletter. Please put your thoughts and feedback in comments section.

Share this

Share on FacebookTweet on TwitterPlus on Google+


EmoticonEmoticon