In ASP.Net User can't upload file which is more than 4MB,
because by default maximum size of file for upload is only 4MB.
So now what is the solution if you want to allow more than
4MB file in your website? At that time you can increase the value of “maxRequestLength”
attribute of “machine.config” file.
Using <httpRuntime> element you can set file size like
below.
<httpRuntime executionTimeout="240" maxRequestLength="90000" />
//Here I set value of attribute "maxRequestLength" As "90000"...
|