Add the httpRuntime element in web.config as follows:
<configuration>
<system.web>
<httpRuntime maxRequestLength="8192"
useFullyQualifiedRedirectUrl="true"
executionTimeout="45"
versionHeader="1.1.4128"/>
</system.web>
</configuration>
The maxRequestLength attribute limits the upload size. For example, if it is set to "8192", it will be 8M.