Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1534

Fix preview update after blob update

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.19
    • Component/s: Preview
    • Release Notes Summary:
      The blob update does not trigger a download any more.
    • Backlog priority:
      700
    • Team:
      UI
    • Sprint:
      UI COOLDOWN - 2022-13, UI - 2023-01

      Description

      Steps to reproduce:

      1. Create a File document with no attachment
      2. Drag'n drop a .docx file to the D&D area
      3. Observe that the preview is updated but also that the .docx file is downloaded

      The problem sounds related to nuxeo-document-preview.js#_updatePreview which is called twice when the document is updated : the first time, it dowloads the previewer whose mime-type is ".*", the second time it downloads the PDF rendition as expected.

      Expected behavior: the preview is updated once the file is uploaded with the D&D but no file download happens

        Attachments

        1. auto_download-drag_file.webm
          2.70 MB
          Thierry Martins
        2. Peek 2023-01-02 12-29.mp4
          1.76 MB
          Bertrand Chauvin

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: