Files
penpot/backend
Andrey Antukh e9d177eae3 Make the binfile export process more resilent to errors
The current binfile export process uses a streaming technique. The
major problem with the streaming approach is the case when an error
happens on the middle of generation, because we have no way to
notify the user about the error (because the response is already
is sent and contents are streaming directly to the user
client/browser).

This commit replaces the streaming with temporal files and SSE
encoded response for emit the export progress events; once the
exportation is finished, a temporal uri to the exported artifact
is emited to the user via "end" event and the frontend code
will automatically trigger the download.

Using the SSE approach removes possible transport timeouts on export
large files by sending progress data over the open connection.

This commit also removes obsolete code related to old binfile
formats.
2025-11-19 17:28:55 +01:00
..
2025-11-10 17:10:59 +01:00
2025-11-18 20:34:17 +01:00
2025-11-12 12:49:10 +01:00
2025-11-04 10:56:05 +01:00
2025-06-18 13:20:45 +02:00
2024-05-29 19:05:04 +02:00
2025-06-18 13:20:45 +02:00