legacy-knowledge-base
公開されました Sep. 10, 2025

OSGi Configに移動したブログのイメージプロパティ

written-by

Daniel Sanz

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

問題

7.2フィックスパック1のインストール後、 blogs.image.max サイズと blogs.image.extentions 設定は保持されません。

詳細

blogs.image. ポータルのプロパティは、モジュール化し、コントロールパネルの中、またはで設定する必要がありますされている .config ファイル。ポータルのプロパティは有効になりません。

コントロールパネルの構成

  1. ポータル管理者として、「   コントロールパネル」→「構成」→「システム設定」→「ブログ」→「ファイルのアップロード」 構成ページに移動します。
  2. blogs.image.extensionsにある各拡張子について 許可されているブログの画像ファイル拡張子  フィールドのいずれかに拡張子が既に存在するかどうかを確認します。許可しない各値の近くにあるごみ箱アイコンをクリックします。値の近くにある+アイコンをクリックして、追加の値を追加
  3. blogs.image.max.size値からプロパティ 最大ブログ画像サイズ の正しい値を設定します
  4. 設定を保存する

構成ファイルの構成

1.次の名前のテキストファイルを作成します。 
com.liferay.blogs.configuration.BlogsFileUploadsConfiguration.config

2.ファイルに以下を追加して保存します。

imageExtensions=[ \
".gif", \
".jpeg", \
".jpg", \
".png", \
]
imageMaxSize="5242880"

3.$liferay_home/osgi/configsにファイルを配置します 

追加情報 

7.2フィックスパック1以降、ブログの画像に関連する以下のプロパティは廃止され、移動されました。

 

 # Set the maximum file size for images stored with blogs entries. The images
# can be uploaded using an Alloy Editor, Cover Image, or Image Selector. A
# value of 0 for the maximum file size can be used to indicate unlimited
# file size. However, the maximum file size allowed is set in the property
# "com.liferay.portal.upload.UploadServletRequestImpl.max.size". The default
# value is 5 mb.
#
# Env: LIFERAY_BLOGS_PERIOD_IMAGE_PERIOD_MAX_PERIOD_SIZE
#
blogs.image.max.size=5242880

#
# Set valid file extensions for blog images. A file extension of * will
# permit all file extensions.
#
# Env: LIFERAY_BLOGS_PERIOD_IMAGE_PERIOD_EXTENSIONS
#
blogs.image.extensions=.gif,.jpeg,.jpg,.png

その結果、これらのプロパティを設定した場合、値はポータルによって読み取られなくなります。

詳細については、LPS-95298を参照してください。 

did-this-article-resolve-your-issue

legacy-knowledge-base