mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The card Excel export, and the board export drawn in the card layout, read every picture of the card or board into memory while drawing the sheet and wrote the whole workbook at the end. They now write through createWorkbookWriter to the response, and the board export writes each card's rows out once the card is drawn. With the @wekanteam/exceljs fork's streaming writer (.tools/exceljs: archiver 8 support and pictures on a streaming sheet) each picture is a function the writer calls when it reaches it, so one is open at a time and a picture that cannot be read is written empty rather than ending the download. The fork is recognised by WorkbookWriter._addDrawing; until a release with it is installed, these exports take the buffered writer as before. A failure after the first byte now ends the download instead of leaving it waiting. Thanks to markusst1982 and xet7 !