The .heic file format is not supported in profile image
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- Issues while uploading a profile photo taken with an iPhone camera since the extension is .heic, which causes errors. Even if tried to upload via control panel options, the issue may persist with the same extension files.
1) Start Clean instance of Liferay 7.2
2) Update portal-ext.properties with this value
mime.types.web.images=image/gif,image/jpeg,image/pjpeg,image/png,image/x-png,image/heic
3) Navigate to 'Users and Organizations'
4) Create one user and save it
5) Edit this user by selecting the 'Change' option to set the user profile with a .heic image
Expected behavior: The chosen image is saved and shown on the user's profile.
Observed behavior: Received error message on UI: "Please enter a file with a valid type"
Environment
- Liferay DXP 7.2 Fix Pack 14
Resolution
- The observed behavior is a known Liferay DXP bug which has been addressed by LPS-154652
- If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
-
Installing Fix Packs and Hotfixes on Liferay DXP will guide to installation of the hotfix in the respective environment.
Did this article resolve your issue ?