legacy-knowledge-base
公開されました Jun. 30, 2025

ファイルサイズが10MBを超える場合、ドキュメントとメディアにファイルをアップロードできません。

written-by

Apsara Raheja

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

learn-legacy-article-disclaimer-text

問題

  • ユーザーがドキュメントとメディアにファイルをアップロードしようとすると、サイズが10MBを超えるとアップロードされません。

環境

  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • ジェイボス

解像度

  • Increasemax-post-size (デフォルトでは10485760 = 10 MB)をundertowサブシステムのリスナーに追加し、大きなファイルのポストリクエストを受け付けるようにした。
    • 例えば 最大ポストサイズ {Jboss_home}を 31457280 (= 30MB)に設定する。
      <subsystem xmlns="urn:jboss:domain:undertow:3.1">
      <buffer-cache name="default"/>
      <server name="default-server">
      <ajp-listener name="ajp" max-post-size="31457280" socket-binding="ajp"/>
      <http-listener name="default" max-post-size="31457280" socket-binding="http" redirect-socket="https"/>
      <https-listener name="https" max-post-size="31457280" socket-binding="https" security-realm="ApplicationRealm"/>
      ...
      </server>
      ...

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base