The way to set the file upload size in IIS 6.0 is to configure the following nodes:
Copy Code code as follows:
<system.web>
</system.web>
However, in IIS7, the setting is set as above, no matter how large the number is set, the maximum upload limit is 30M
The following settings are also required to be correct:
Method 1:
Appcmd set config "My Site/myapp"-section:requestfiltering-requestlimits.maxallowedcontentlength:104857600- Commitpath:apphost
On the command line of the IIS server, follow the instructions above, and change the site name and upload file size
Method 2:
Add the following configuration to the web.config:
Copy Code code as follows:
<system.webServer>
<security>
<requestFiltering>
<requestlimits maxallowedcontentlength= "1048576000" ></requestLimits>
</requestFiltering>
</security>
</system.webServer>
The following methods are not correct or bad
There are a number of ways to modify the Web: "C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml" files, but this can be done, but if the system is installed patches, it is possible to overwrite the file, Let the settings fail;
In addition, there are also said modifications: