summary refs log tree commit diff
path: root/src/cdn/util/multer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdn/util/multer.ts')
-rw-r--r--src/cdn/util/multer.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cdn/util/multer.ts b/src/cdn/util/multer.ts
new file mode 100644
index 00000000..bfdf6aff
--- /dev/null
+++ b/src/cdn/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
+	},
+});