The general scheme for uploading large web files is to process them at the httpmodule level. There are a lot of technical documents online, so it is not cumbersome.
To use this solution, you must set some configuration items in Web. config and run the client to upload large files:
This is the IIS configuration, and the following is the iis7:
Configuration => system. webserver => Security => requestfiltering => requestlimits
Several attributes of requestlimits:
Maxallowedcontentlength: maximum size of data to be uploaded. The default unit is byte: 30000000, about 28 m.
The maximum URL parameter length of maxquerystring. Default Value: 2048
The maximum URL Length of maxurl. Default Value: 4096
This is for ASP. net configuration:
you also need to set system. in the web, the unit of maxrequestlength from httpruntime to maxallowedcontentlength is KB. The default value is 4 MB, which is why Asp.net also has a default page request that cannot exceed 4 MB.