When use multer, you can't get the uploaded stream, you just get the buffer when the upload ends. so I think there is no way to use
@UseInterceptors(FileInterceptor('file'))
@Post()
upload(@UploadedFile() file: Express.Multer.File, @GetUser() user) {
return this._myService.upload(user._id, file);
}
I tried busboy to get the chunks of uplaoded file and got it, but how to response to the client about the progress!?