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

Uploading JPEG image doesn't work in badges

XMLWordPrintable

    • MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • MDL-50041-master
    • Hide
      1. Repeat the test from MDL-46763
      2. Try to create a badge with both JPG and PNG format (confirm the mimetype as some PNGs are hidden under JPEG images)
      3. Award the badges to someone
      4. Confirm that the badge has been properly baked, e.g. the user can view its badges
      Show
      Repeat the test from MDL-46763 Try to create a badge with both JPG and PNG format (confirm the mimetype as some PNGs are hidden under JPEG images) Award the badges to someone Confirm that the badge has been properly baked, e.g. the user can view its badges

      Uploading jpeg image as badge is always showing that image is not being uploaded.

      Steps to replicate:

      1. Log in as admin
      2. Go to Administration>Site administration>Badges>Add a new badge.
      3. Upload jpeg image and fill required fields
      4. Click "Create badge"
      5. You will see the image is not being uploaded.

      Seems https://github.com/rajeshtaneja/moodle/blob/master/lib/filelib.php#L3826 is the cause.

            fred Frédéric Massart
            rajeshtaneja Rajesh Taneja
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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