Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33032 META: Files UI Stage 1 integrate branch into core
  3. MDL-33093

Cached thumbnail displayed after the file is replaced in the filemanager

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Filepicker, Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      As discussed with Marina, URLs realthumbnail and realicon do not change when the original file is replaced/ovewritten in the filemanager. This makes the browser to use the locally cached version of the image instead of re-fetching the new thumbnail. To fix this:

      • filemanager has to reload the files list from the server (Marina will do this part)
      • thumbnail URL must contain an additional parameter to identify the original's revision

      As the stored_file object is available when constructing these URLs, we decided to use the contenthash of the original file as the identifier. (alternatively we might use the timemodified stamp).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mudrd8mz David Mudrák (@mudrd8mz)
                Reporter:
                mudrd8mz David Mudrák (@mudrd8mz)
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: