'NestJS upload file with progress
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!?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
