diff --git a/server/src/middleware/file-upload.interceptor.ts b/server/src/middleware/file-upload.interceptor.ts index d0b04b50a2e5c..108a187e67b8c 100644 --- a/server/src/middleware/file-upload.interceptor.ts +++ b/server/src/middleware/file-upload.interceptor.ts @@ -136,6 +136,7 @@ export class FileUploadInterceptor implements NestInterceptor { } const hash = createHash('sha1'); + file.stream.on('data', (chunk) => hash.update(chunk)); this.defaultStorage._handleFile(request, file, (error, info) => { if (error) { hash.destroy();