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

Uploading JPEG image doesn't work in badges

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.9
    • Component/s: Badges
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50041-master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              rajeshtaneja Rajesh Taneja
              Peer reviewer:
              Rajesh Taneja
              Integrator:
              Dan Poltawski
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15