Thursday, September 11, 2008

Upload Large File

The default file-upload size in asp.net is 8MB. If you try to upload more than 8MB, the web-server throws an exception. However, you can increase the upload size by setting the maxRequestLength attribute of System.Web in the web.config


<System.Web>
   <httpRuntime maxRequestLength="409600" />


The above sample segment has a capacity to upload a file of 400MB.


No comments:

 
Best viewed in Internet Explorer 8.