@@ -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();