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

SVG files being downloaded instead of served in SCORM activities

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72316-master-2
    • Hide

      Prerequisites

      1. A course with a student enrolled.
      2. Testing using Chrome - the SCORM package gave me a warning and didn't completely load in Firefox.

      Test SCORM fixed

      1. Create a new SCORM activity, using the attached test_SCORM_with_SVG.zip file.
      2. As the student, navigate to the SCORM activity and start it.
      3. CONFIRM that your browser has not downloaded (or prompted you to download) any SVG files.
      4. CONFIRM that the various icons have loaded in the SCORM activity (as shown in the two sections below, outlined in red):

      Test directly accessing SVG links still forces download

      1. As admin, create a forum in the course.
      2. Create a forum discussion, including an SVG embedded in the post, as well as attaching it to the attachment section ( sample.svg attached to this issue can be used for both).
      3. Once the posted discussion loads, right click on the first image in the post, and "copy image address".
      4. In a new browser tab, paste the address and visit the URL.
      5. CONFIRM sample.svg is downloaded rather than being displayed in the browser.
      6. Repeat steps 3-5 on the second sample SVG image (which would be the attached one), again CONFIRMING that the image downloads and is not opened in the browser.
      Show
      Prerequisites A course with a student enrolled. Testing using Chrome - the SCORM package gave me a warning and didn't completely load in Firefox. Test SCORM fixed Create a new SCORM activity, using the attached test_SCORM_with_SVG.zip file. As the student, navigate to the SCORM activity and start it. CONFIRM that your browser has not downloaded (or prompted you to download) any SVG files. CONFIRM that the various icons have loaded in the SCORM activity (as shown in the two sections below, outlined in red): Test directly accessing SVG links still forces download As admin, create a forum in the course. Create a forum discussion, including an SVG embedded in the post, as well as attaching it to the attachment section ( sample.svg attached to this issue can be used for both). Once the posted discussion loads, right click on the first image in the post, and "copy image address". In a new browser tab, paste the address and visit the URL. CONFIRM sample.svg is downloaded rather than being displayed in the browser. Repeat steps 3-5 on the second sample SVG image (which would be the attached one), again CONFIRMING that the image downloads and is not opened in the browser.
    • HQ Team International CI H2-21

      Clicking on a button with an SVG image in a Moodle SCORM module downloads the SVG instead of displaying it.

      This issue is present in Moodle v3.10.5, but not in 3.10.2

      Please see details in Moodle in English: SVG File not being Served, downloads instead

        1. MDL-72316_Test Passed.png
          MDL-72316_Test Passed.png
          851 kB
        2. MDL-72316-test.png
          MDL-72316-test.png
          748 kB
        3. sample.svg
          0.3 kB
        4. test_SCORM_with_SVG.zip
          11.34 MB

            michaelh Michael Hawkins
            mrdannynavarro Daniel Navarro
            Tim Hunt Tim Hunt
            Jun Pataleta Jun Pataleta
            Gladys Basiana Gladys Basiana
            Votes:
            5 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 55 minutes
                1d 5h 55m

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