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


    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.3
    • Filepicker, Files API
    • None

      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).

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            0 Vote for this issue
            0 Start watching this issue


                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.