post base64图片时,request.getParameter获取为null,是由于超出tomcat默认的限制 maxPostSize 2M
maxPostSize设置为0表示没有限制
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" maxPostSize="0"/>
本文介绍了解决postbase64图片上传时遇到的问题,即使用request.getParameter获取的数据为null的情况。此问题通常由tomcat默认的maxPostSize限制引起。文中详细解释了如何通过调整tomcat配置文件中的maxPostSize参数来解决该问题。
1288

被折叠的 条评论
为什么被折叠?
