How do I enable upload of large files in classic ASP on IIS 7?

后端 未结 6 2197
忘了有多久
忘了有多久 2020-11-30 03:01

Recently I had to get an old ASP application working in IIS 7.5 on a W2K8 server. Almost everything works fine, except that I can\'t seem to get it to accept uploads larger

6条回答
  •  有刺的猬
    2020-11-30 03:52

    The maxAllowedContentLength controls how much data is allowed to be sent in a response. However you want to control how much can be accepted in a request. This is handled by the maxRequestEntityAllowed attribute of the limits element in the asp section of the config file. An example might look like:-

    
      
         
         
      
    

    You can configure this in the IIS7 manager under the "Limit Properties" category in the property grid for the ASP feature. Alternatively you can use a command line:-

    appcmd set config /section:asp /limits.maxRequestEntityAllowed:104857600
    

    Note that extending this value increase the window for DOS attack where the attacker sends large content to the server so don't be tempted to extend this beyond what you really need.

提交回复
热议问题