Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-127727

Liferay.Util.formatStorage is not consistent with LanguageUtil.formatStorageSize

    Details

    • Fix Priority:
      1

      Description

      Current implementation of Liferay.Util.formatStorage doesn't return same results as JAVA's LanguageUtil.formatStorage.

       

      Example:

      Liferay.Util.formatStorage("5242880") -> "5.0MB"

      LanguageUtil.formatStorageSize("5242880") -> "5MB"

       

      This may be caused by the modernization of this utility at https://github.com/brianchandotcom/liferay-portal/pull/75154

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            carlos.lancha Carlos Lancha
            Participants of an Issue:
            Recent user:
            Esther Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              7 weeks, 5 days ago

                Packages

                Version Package