After installing 7.2 fix pack 1 the
blogs.image.max size and
blogs.image.extentions settings do not persist.
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
- As a portal administrator, go to: Control Panel → Configuration → System Settings → Blogs → File Uploads configuration page
- 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
- Set the correct values for the property Maximum Blogs Image Size from the value you have in
- Save the configuration
Config file Configuration
1. Create a text file named:
2. Add the following to the file and save:
3. Place the file in
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
# Set valid file extensions for blog images. A file extension of * will
# permit all file extensions.
# Env: LIFERAY_BLOGS_PERIOD_IMAGE_PERIOD_EXTENSIONS
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