Legacy Knowledge Base
Published Sep. 10, 2025

Blogs Image Properties Moved to 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

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.

Issue

After installing 7.2 fix pack 1 the blogs.image.max size and blogs.image.extentions settings do not persist.

Resolution

The blogs.image. portal properties have been modularized and need to be set in the Control Panel or with a .config file.  The portal properties will no longer take effect.

Control Panel Configuration

  1. As a portal administrator, go to: Control Panel → Configuration → System Settings → Blogs → File Uploads configuration page
  2. For each extension you have in blogs.image.extensions, check if the extension is already present in one of the Allowed Blogs Image File Extensions fields. Click on the trash icon near each value you don't want to allow. Click on the + icon near some value to add the additional ones
  3. Set the correct values for the property Maximum Blogs Image Size from the value you have in blogs.image.max.size
  4. Save the configuration

Config file Configuration

1. Create a text file named: 
com.liferay.blogs.configuration.BlogsFileUploadsConfiguration.config

2. Add the following to the file and save:

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

3. Place the file in $liferay_home/osgi/configs

Additional Information 

Starting from 7.2 fix pack 1, the following properties related to blogs images have been deprecated and moved:

 # 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

As a result, if you configured these properties, the values will no longer be read by the portal.

For more information, please see LPS-95298

Did this article resolve your issue ?

Legacy Knowledge Base