fix 22.9 Unable to download large PDF files attached to card issue fixed

This commit is contained in:
seve12 2025-09-23 13:40:14 +03:00
parent 392b8dd5b2
commit a5651c686f

View file

@ -8,7 +8,8 @@ export const httpStreamOutput = function(readStream, name, http, downloadFlag, c
http.response.end();
});
readStream.on('error', () => {
readStream.on('error', (err) => {
console.error(`Download stream error for file '${name}':`, err);
http.response.statusCode = 404;
http.response.end('not found');
});