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

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

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD