I am trying to create a custom Multer StorageEngine to simply return the Readable stream from Multer in req.file, rather than a Buffer. I then pass this Readable stream through my app to another package form-data which reads the stream to be sent in an HTTP request via Nodes fetch. I know this form-data library works with streams because if I manually create a Readable within the controller (Readable.from(createReadStream("./50Mbfile")) the library unpauses and reads the stream as expected and the file is correctly sent via fetch.
Looking at the @nestjs/platform-express package, multer appears to be set at "multer": "1.4.4-lts.1". I found a comment that states file.stream was added in a 2.x.x version. I have installed Nest 10.4.14 and in my custom Engine it appears that the stream is available (IDE inspection states it is a FileStream) so I assume the comment above isn't quite correct.
Regardless, I am having a difficult time with the StorageEngine definition and I don't know if the fault is with Multer, NestJS or my implementation. I am using a Nest Interceptor and a variation of the custom engine example within the Multer repository