Browse Source

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

seve12 3 weeks ago
parent
commit
a5651c686f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      models/lib/httpStream.js

+ 2 - 1
models/lib/httpStream.js

@@ -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');
     });