Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-347

Handle big file preview

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10
    • Fix Version/s: HOTFIX_10.10_2.4, 3.0.x
    • Component/s: UI

      Description

      Steps to reproduce:

      1. Upload a 2GB PDF file (yes, a PDF with a 2000 MB size)
      2. Validate the creation of the document
      3. On a remote instance, observe that pdf.js is taking ages to load the PDF in order to preview it
      4. if it takes a very long time, it could end with an error

      Expected behavior: the user does not wait forever for the preview. Depending on the size of the attachment, we should decide not to display the preview.

      The limit could be configuration is one think 5MB (for example) is too low

      Best solution: renditions for preview should be stored. And for big files, we may want to generate the rendition only for the first pages : a tool like unconv is interesting to split the document and convert only some pages.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmartins Thierry Martins
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: