Default Limits for IIS Express

前端 未结 4 667
再見小時候
再見小時候 2020-12-16 16:57

I need to test a file upload component that will be accepting very large files. I want to test locally in my development environment but since I use IIS Express instead of I

4条回答
  •  隐瞒了意图╮
    2020-12-16 17:38

    You basically need to set both in web.config maxRequestLength and maxAllowedContentLength to upload files.

    • maxRequestLength Indicates the maximum file upload size supported by ASP.NET
    • maxAllowedContentLength This specifies the maximum length of content in a request supported by IIS.

    Note:maxRequestLength is in kilobytes & maxAllowedContentLength is in Bytes

    By default, Machine.config is configured to accept HTTP Requests upto 4096 KB (4 MB) and it is reflected in all your ASP.NET applications. You can change the Machine.config file directly, or you can change only the Web.config file of the application(s) you want to

    
            
                
                    
                
            
    
    

     
       
          
             
          
       
     
    

提交回复
热议问题