mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
fix 22.9 Unable to download large PDF files attached to card issue fixed
This commit is contained in:
parent
392b8dd5b2
commit
a5651c686f
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,8 @@ export const httpStreamOutput = function(readStream, name, http, downloadFlag, c
|
||||||
http.response.end();
|
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.statusCode = 404;
|
||||||
http.response.end('not found');
|
http.response.end('not found');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue