Legacy Knowledge Base
公開されました Jun. 30, 2025

フォーム内の要素の数が制限されています。

Written By

Viktória Gyömbér

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 28以上の要素を持つフォームを作成することはできません。このシナリオを試行すると、成功せずにフォームリストにリダイレクトされ、ログにエラーメッセージが出力されます。

 

環境

  • Liferay DXP 7.4

 

解決

com.liferay.portal.kernel.upload.FileItem.threshold.size のプロパティの値を大きくすることで、この問題を回避することができます。 以下の値を使用すると、問題は起こらなくなりました。

com.liferay.portal.kernel.upload.FileItem.threshold.size=8048576

また、tomcat の maxPostSize を増やす必要があるかもしれません。その場合は、 TOMCAT-HOME/conf/server.xmlでこのパラメーターを増やす必要があります:

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"
maxPostSize="8000000" />

ここでは、8MB付近に設定されていますが、デフォルト値は2MB(2097152)であり、-1に設定するとサイズ制限が完全に解除されます。

 

Did this article resolve your issue ?

Legacy Knowledge Base