Javascript – How to reuse mutler settings to specify a different folder for a route
I initialize MutlerModule to app.module: MulterModule.registerAsync({ imports: [ ConfigModule ], inject: [ ConfigService ], async useFactory(configService: ConfigService) { const uploadFolder = configService.get<IConfig[ "uploadFolder" ]>("uploadFolder"); return { storage: diskStorage({ destination: uploadFolder, filename(req, file, cb) { const filename = `${ Date.now() }-${…