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

Drag and Drop Image feature does not support image files ending with UPPERCASE file extensions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.4, 2.4.1, 2.5
    • Fix Version/s: 2.3.5, 2.4.2
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      master branch only:

      1. Make sure the label settigns (site admin > plugins > activities > label) allow images to be dragged and dropped into a course page
      2. Turn editing on in a course
      3. Drag and drop an image file with a lower-case extension (e.g. 'cat.jpg')
        • Check the option to 'add image to course page' is offered (along with 'create file resource')
      4. Drag and drop an image file with an upper-case extension (e.g. 'cat.JPG')
        • Check the option to 'add image to course page' is offered (along with 'create file resource')

      all branches (2.3/2.4/master):

      1. Turn editing on in a course
      2. Drag and drop a zip file with lower-case extension (e.g. 'files.zip')
        • Check the options to 'unzip the files and create a folder' and 'create a SCORM' are offered (along with 'create file resource')
      3. Drag and drop a zip file with upper-case extension (e.g. 'files.ZIP')
        • Check the options to 'unzip the files and create a folder' and 'create a SCORM' are offered (along with 'create file resource')

      As always with drag and drop, this only applies to supported browsers (Firefox, Chrome, IE10, Safari?)

      Show
      master branch only: Make sure the label settigns (site admin > plugins > activities > label) allow images to be dragged and dropped into a course page Turn editing on in a course Drag and drop an image file with a lower-case extension (e.g. 'cat.jpg') Check the option to 'add image to course page' is offered (along with 'create file resource') Drag and drop an image file with an upper-case extension (e.g. 'cat.JPG') Check the option to 'add image to course page' is offered (along with 'create file resource') all branches (2.3/2.4/master): Turn editing on in a course Drag and drop a zip file with lower-case extension (e.g. 'files.zip') Check the options to 'unzip the files and create a folder' and 'create a SCORM' are offered (along with 'create file resource') Drag and drop a zip file with upper-case extension (e.g. 'files.ZIP') Check the options to 'unzip the files and create a folder' and 'create a SCORM' are offered (along with 'create file resource') As always with drag and drop, this only applies to supported browsers (Firefox, Chrome, IE10, Safari?)
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-38033_dnd_uppercase_extn

      Description

      The Drag and Drop Image code by Davo Smith (as of 14th February 2013), for image embed purposes, only recognizes file extensions that are in lowercase. E.g., *.png and *.jpg embed correctly when dragged to the course page. However, image files that end with the file extensions *.PNG and *.JPG will end up as image file links instead of being embedded inside the course page.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Mar/13