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

workshop module can't preview or download svg files uploaded by students

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3.2
    • Fix Version/s: None
    • Component/s: Workshop
    • Labels:
      None
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      If the file to upload is an svg it's not possible to visualize or download the files uploaded by students.

      This is an example of the html code of a submission preview:

      <div id="yui_3_17_2_1_1508354542012_74"><a href="http://xxxxxxxxxx/pluginfile.php/13277/mod_workshop/submission_attachment/390/la%20liga.svg?forcedownload=1"><img src="http://xxxxxxxxxx/pluginfile.php/13277/mod_workshop/submission_attachment/390/la%20liga.svg?preview=bigthumb" alt="" class="preview"></a></div>

      And the visualized HTML

      I can properly download the file if I copy and paste the src link without querystring in other browser tab.

      I tried Google Chrome 60.0.3112.113, Microsoft Edge 38.14393.0.0, and Mozilla Firefox 56.0 without success.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            canchete Ruben Cancho
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: