nginx - client_max_body_size has no effect

前端 未结 13 1837
无人共我
无人共我 2020-11-28 01:13

nginx keeps saying client intended to send too large body. Googling and RTM pointed me to client_max_body_size. I set it to 200m in th

相关标签:
13条回答
  • 2020-11-28 01:43

    If you tried the above options and no success, also you're using IIS (iisnode) to host your node app, putting this code on web.config resolved the problem for me:

    Here is the reference: https://www.inflectra.com/support/knowledgebase/kb306.aspx

    Also, you can chagne the length allowed because now I think its 2GB. Modify it by your needs.

      <security>
        <requestFiltering>
          <requestLimits maxAllowedContentLength="2147483648" />
        </requestFiltering>
      </security>
    
    0 讨论(0)
提交回复
热议问题