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

Uploading JPEG image doesn't work in badges

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9
    • 2.9
    • Badges
    • 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

    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

              fred Frédéric Massart
              rajeshtaneja Rajesh Taneja
              Rajesh Taneja Rajesh Taneja
              Dan Poltawski Dan Poltawski
              Simey Lameze Simey Lameze
              Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15