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

Add Mime Mappings for webfont and additional audio/video formats

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.4.6, 4.5
    • 4.4.5
    • core
    • None
    • Yes

      Hi,

      Currently, there are no MimeMappings for webfonts and the WebM and Theora audio and video file formats. Adding the following update tasks to CoreModuleVersionHandler.java within the delta for the 4.5 release will add them.

      .addTask(new AddMimeMappingTask("eot", "application/vnd.ms-fontobject", "/.resources/file-icons/eot.png"))
      .addTask(new AddMimeMappingTask("oga", "audio/ogg", "/.resources/file-icons/ogg.png"))
      .addTask(new AddMimeMappingTask("ogg", "video/ogg", "/.resources/file-icons/ogg.png"))
      .addTask(new AddMimeMappingTask("ogv", "video/ogg", "/.resources/file-icons/ogg.png"))
      .addTask(new AddMimeMappingTask("otf", "application/x-font-otf", "/.resources/file-icons/otf.png"))
      .addTask(new AddMimeMappingTask("ttf", "application/x-font-ttf", "/.resources/file-icons/ttf.png"))
      .addTask(new AddMimeMappingTask("weba", "audio/webm", "/.resources/file-icons/webm.png"))
      .addTask(new AddMimeMappingTask("webm", "video/webm", "/.resources/file-icons/webm.png"))
      .addTask(new AddMimeMappingTask("woff", "application/x-font-woff", "/.resources/file-icons/woff.png"))
      
      

      Note: The tasks above reference file icons that don't yet exist. Those should probably be created and added to the magnolia-module-admininterface.

      Let me know if you have any questions.

      Cheers,
      Matt

        Acceptance criteria

              mdivilek Milan Divilek
              mderting Matt Dertinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD