From 6f7878048a86237e4e0e38777a98f3fbfa9b7642 Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Fri, 21 Jun 2024 11:10:09 +0200 Subject: [PATCH] feat: add MAX_NUMBER_OF_FILES_UPLOAD (#562) * feat: add MAX_NUMBER_OF_FILES_UPLOAD * refactor: fix comment * refactor: set as const --- src/constants/limits.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/constants/limits.ts b/src/constants/limits.ts index 8d377128..0798903b 100644 --- a/src/constants/limits.ts +++ b/src/constants/limits.ts @@ -57,6 +57,11 @@ export const MAX_ZIP_FILE_SIZE = 1024 * 1024 * 250; // 250MB */ export const MAX_FILE_SIZE = 1024 * 1024 * 1024; // 1GB +/** + * Maximum number of files one can upload in parallel + */ +export const MAX_NUMBER_OF_FILES_UPLOAD = 20 as const; + /** * Maximum size for a thumbnail */