From 02de202eecf0ee1573f5bc91d029015b1abe1882 Mon Sep 17 00:00:00 2001 From: Dmitry Sushchevsky Date: Wed, 1 Dec 2021 15:50:05 +0300 Subject: [PATCH] add support pdf in body of request --- src/middleware/express.app.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middleware/express.app.config.ts b/src/middleware/express.app.config.ts index 6cc0a400af..07314b611d 100644 --- a/src/middleware/express.app.config.ts +++ b/src/middleware/express.app.config.ts @@ -30,6 +30,7 @@ export class ExpressAppConfig { this.app.use(bodyParser.urlencoded()); this.app.use(bodyParser.text()); this.app.use(bodyParser.json()); + this.app.use(bodyParser.raw({ type: 'application/pdf' })); this.app.use(this.configureLogger(appOptions.logging)); this.app.use(express.json());