Shun Miyazawa před 1 rokem
rodič
revize
c201563a1b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      apps/app/src/server/service/attachment.js

+ 2 - 0
apps/app/src/server/service/attachment.js

@@ -72,6 +72,8 @@ class AttachmentService {
           },
           async flush(callback) {
             try {
+              // At this point we have the complete file as a Buffer
+              // This approach assumes handler needs the complete file data
               const completeData = Buffer.concat(chunks);
               await handler(pageId, attachment, file, completeData);
               callback();