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

file_save_draft_area_files won't be able to dected file changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      To reproduce this:
      1. edit course files
      2. add one file named 'moodle.jpg', and save
      3. edit course files again, add a new file moodle2.jpg
      4. remove moodle.jpg in filemanager
      5. rename moodle2.jpg to moodle.jpg, and save it

      then you will still see moodle.jpg not moodle2.jpg.

      I read the code of file_save_draft_area_files, it uses pathname hash, that's why we cannot track the changes of file content

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            dongsheng Dongsheng Cai
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10