Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-75867

SVG images embedded with object tags download rather than display

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE, MOODLE_501_STABLE

      In mod_resource it's possible to upload html files and associated images. If the images are SVG files then they display if an img tag is used but are forced to download if an object tag is used. Although, object is possibly uncommon it should work. We encountered it used in epub files (which are just zip files with HTML content). 

      To reproduce...

      • Create a new file resource
      • Upload the attached zip
      • Click and unzip
      • Click folder and set index.php as main file
      • Save

      When displaying the resource, the attached SVG file is downloaded (on Chrome, anyway). It should be displayed. 

      There seem to be a number of related tickets - e.g. MDL-72316

       

       

            Unassigned Unassigned
            howardsmiller Howard Miller
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.