From ede8ed4b715a0167a63edcc15cdc5d4c644356c5 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 7 Aug 2021 13:15:35 +0200 Subject: :sparkles: icons + banners route --- src/util/multer.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/util/multer.ts (limited to 'src/util/multer.ts') diff --git a/src/util/multer.ts b/src/util/multer.ts new file mode 100644 index 00000000..bfdf6aff --- /dev/null +++ b/src/util/multer.ts @@ -0,0 +1,10 @@ +import multerConfig from "multer"; + +export const multer = multerConfig({ + storage: multerConfig.memoryStorage(), + limits: { + fields: 10, + files: 10, + fileSize: 1024 * 1024 * 100, // 100 mb + }, +}); -- cgit 1.5.1