Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6163

Add method to templating functions to get file extension from filename and a human readable filesize

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.4
    • None
    • templating components
    • None

    Description

      To simplify templating with files/assets we should provide methods to "extract" the file extension form a filename and to get a filesize in a human readable string.

      • getFileExtension("filename.ext")ext
      • getDisplayFileSize(1970176)1MB

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pmundt Philip Mundt
                pmundt Philip Mundt
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD