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

Images not appearing for users other than the uploader

    XMLWordPrintable

Details

    • MySQL
    • MOODLE_20_STABLE
    • 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

              skodak Petr Skoda
              mikeholzer Mike Holzer
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona), Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              9 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Feb/11