Asp.net Core 2.0 RequestSizeLimit attribute not working

后端 未结 2 612
天命终不由人
天命终不由人 2020-12-06 10:25

I\'m creating a website in Asp.net core 2.0 which allows files to be uploaded. I quickly came across the problem of the 30MB upload limit and receive a 4

2条回答
  •  难免孤独
    2020-12-06 10:35

    For anyone else with the same problem, this is the answer.

    Mark LaFleur's answer was the right direction but the web.config was missing a crucial section.

    I was helped but this webpage that explains more about the web.config file in Asp.net Core: ASP.NET Core Module configuration reference

    To stop this error you need to create a web.config file with the following content:

    
    
      
        
          
        
        
          
            
            
          
        
      
    
    

提交回复
热议问题