工作总结29 Tomcat7 maxPostSize in tomcat's configuration
2017-03-28 10:55
281 查看
According to Tomcat7's documentation, setting maxPostSize in Connector to a value less than or equal to 0 may disable the limit
of the size of a post request. But in fact, when I set it to 0, uploading a file in multipart/form-data enctype still got the error of exceeding the max size limit. When I set it to -1, no limit occurs, but other strange things happened.
If
I set maxPostSize to -1, and leave the text field "description" to blank, it responses:maxPostSize=0 results in a limit of zero.
-1 is the correct value for no limit. I'll get that fixed shortly.
说明:在tomcat7.0,使用了servlet3.0, maxPostSize属性,如果设置0,并不是无限提交,如果设置-1,是无限的正确的值。
of the size of a post request. But in fact, when I set it to 0, uploading a file in multipart/form-data enctype still got the error of exceeding the max size limit. When I set it to -1, no limit occurs, but other strange things happened.
If
I set maxPostSize to -1, and leave the text field "description" to blank, it responses:maxPostSize=0 results in a limit of zero.
-1 is the correct value for no limit. I'll get that fixed shortly.
说明:在tomcat7.0,使用了servlet3.0, maxPostSize属性,如果设置0,并不是无限提交,如果设置-1,是无限的正确的值。
相关文章推荐
- 关于tomcat不同版本的maxPostSize
- tomcat MaxPostSize之坑
- tomcat maxPostSize 404
- Tomcat设置maxPostSize导致Post请求不过去
- 关于tomcat Post 数据参数的问题 maxPostSize="0"
- tomcat7以上,设置maxPostSize="0"参数后台获取不到的问题
- tomcat server.xml maxPostSize=0 导致 果post表单收不到参数解决方案
- Tomcat 9 设置 maxPostSize="0" Post 请求丢失问题修复
- 关于tomcat7 配置 maxPostSize="0" 时,后台无法接收前台参数的问题
- tomcat配置maxPostSize遇到的问题
- tomcat8 maxPostSize="0" 不生效
- 关于PHP中文件上传中的post_max_size与upload_max_filesize
- ini_set()函数的使用 以及 post_max_size,upload_max_filesize的修改方法
- php 修改上传文件大小 (max_execution_time post_max_size)
- Tomcat Xms Xmx PermSize MaxPermSize 区别 及 java.lang.OutOfMemoryError: PermGen space 解决
- PHP上传遇到的问题-php 上传大文件主要涉及配置upload_max_filesize和post_max_size两个选项
- apache默认设置post_max_size过小,或者变量被截断,已及有些可能导致上传大文件失败解决方案
- php 上传大文件主要涉及配置upload_max_filesize和post_max_size两个选项。
- tomcat 启动参数 Xms, Xmx, XX:MaxNewSize, XX:PermSize, -XX:MaxPermSize, Djava.awt.headless
- Tomcat Xms Xmx PermSize MaxPermSize 区别 及 java.lang.OutOfMemoryError: PermGen space 解决