Skip to content

Commit

Permalink
feat: add upload failure messages (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Jun 24, 2024
1 parent e32754a commit 7992323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
2 changes: 2 additions & 0 deletions src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7992323

Please sign in to comment.