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

Images not appearing for users other than the uploader

    XMLWordPrintable

    Details

    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When a user (teacher, course creator for this example) uploads an image as part of editing lesson content, the image remains inaccessible to any other user except the user that uploaded the image.

      Specifically, the images in the lesson content are being returned using draftfile.php which can only return files for the uploading user (or admin, apparently). Shouldn't the images be displayed using file.php or pluginfile.php?

      If you look at uploaderview.png, you can see what the user uploading the image sees.
      If you look at studentview.png, you can see what every other user sees (student in this case).

      The source of the image is http://zohamoodle.vhost/draftfile.php?file=%2F170%2Fuser%2Fdraft%2F92193502%2Fkitty.jpg, which as I mentioned before, can only work for the user who uploaded the image.

      http://moodle.org/mod/forum/discuss.php?d=165822
      http://moodle.org/mod/forum/discuss.php?d=165467

      It should be noted that the instances of Moodle 2.0.x tested were upgraded from Moodle 1.9

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                mikeholzer Mike Holzer
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                9 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Feb/11