From 7992323e96abd25c6c3b1a82f68898d7afcc65c0 Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Mon, 24 Jun 2024 13:52:27 +0200 Subject: [PATCH] feat: add upload failure messages (#432) --- src/constants/messages.ts | 2 ++ src/langs/en/messages.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/constants/messages.ts b/src/constants/messages.ts index b021f3c9..e586794b 100644 --- a/src/constants/messages.ts +++ b/src/constants/messages.ts @@ -38,6 +38,8 @@ export const FAILURE_MESSAGES = { // file upload INVALID_UPLOAD_PARAMETERS: 'INVALID_UPLOAD_PARAMETERS', UPLOAD_EMPTY_FILE: 'UPLOAD_EMPTY_FILE', + UPLOAD_BIG_FILES: 'UPLOAD_BIG_FILES', + UPLOAD_TOO_MANY_FILES: 'UPLOAD_TOO_MANY_FILES', INVALID_FILE_PATH_FOR_COPY: `INVALID_FILE_PATH_FOR_COPY`, INVALID_FILE_PATH_FOR_DELETE: `INVALID_FILE_PATH_FOR_DELETE`, INVALID_FOLDER_PATH_FOR_DELETE: `INVALID_FOLDER_PATH_FOR_DELETE`, diff --git a/src/langs/en/messages.json b/src/langs/en/messages.json index c9a76d9a..f4c00114 100644 --- a/src/langs/en/messages.json +++ b/src/langs/en/messages.json @@ -34,6 +34,8 @@ "INVALID_UPLOAD_PARAMETERS": "One or many upload parameters are invalid", "UPLOAD_EMPTY_FILE": "Cannot upload an empty file", + "UPLOAD_TOO_MANY_FILES": "Cannot upload too many files", + "UPLOAD_BIG_FILES": "Cannot upload big files", "INVALID_FILE_PATH_FOR_COPY": "The submitted file path is invalid for copy", "INVALID_FILE_PATH_FOR_DELETE": "The submitted file path is invalid for delete", "INVALID_FOLDER_PATH_FOR_DELETE": "The submitted folder path is invalid for delete",