-
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
-
Backlog priority:500
Steps to reproduce:
- Upload a 2GB PDF file (yes, a PDF with a 2000 MB size)
- Validate the creation of the document
- On a remote instance, observe that pdf.js is taking ages to load the PDF in order to preview it
- 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.
- is related to
-
NXP-29523 Handle the preview according to the file size
- Open