client_max_body_size 没用
时间: 2023-09-14 11:08:54 浏览: 88
ndt.rar_The Client_多媒体
引用中提到,当在nginx.conf配置文件中修改了client_max_body_size的值,但是上传文件的大小仍然超过了设置的值时,会导致报413错误。这可能是因为客户端没有对上传文件的大小进行限制。如果希望避免这种情况发生,可以将client_max_body_size的值设置为0,即禁用客户端请求主体大小的检查。这样,上传文件的大小就不会受到限制了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [nginx 更改配置client_max_body_size没有生效 nginx.conf 修改默认限制上传附件大小](https://blog.csdn.net/qq459805661/article/details/77723265)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Nginx 文件上传 413 错误解决方法](https://blog.csdn.net/newsxy/article/details/124895260)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [php 表单提交大量数据发生丢失的解决方法](https://download.csdn.net/download/weixin_38740144/14846948)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文