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

Resource Files (Sections) not being deleted

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: DEV backlog
    • Component/s: Files API
    • Labels:
    • Environment:
      LAMP Stack -- Let me know if you need more information
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      When a teacher loads an image/video/file into the section of a course, and then later deletes that image/video/file, the image remains on the backside (within the system files).

      The image does not leave the system files at any point and remains. The image/video/file is backed up when the course is backed up therefore creating a larger backup when the resource is actually not in the course.

      Can you provide some insight on how to solve this issue, as it appears that even if a file is deleted, it never is really deleted, and this causes some problems with growth and file management in the future.

      Replication steps:

      1. Login to Course as Teacher
      2. Click Edit Section
      3. Insert Image into Section
      4. Save Section and Image
      5. Delete Image from Section
      6. File remains in the system files

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  4 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated: