diff --git a/frontend/src/language/en.tsx b/frontend/src/language/en.tsx
index 53c42dc7..86c73bff 100644
--- a/frontend/src/language/en.tsx
+++ b/frontend/src/language/en.tsx
@@ -390,6 +390,7 @@ export const en: Language = {
].map((c, index) => {c}),
},
error_messages: {
+ [ErrorMessageKeys.MAX_UPLOAD_SIZE]: 'The file size cannot be larger than 8 MB.',
[ErrorMessageKeys.TOO_LARGE]: 'The file size cannot be larger than 8 MB.',
[ErrorMessageKeys.TOTAL_TOO_LARGE]: 'Total file size cannot exceed 32 MB.',
[ErrorMessageKeys.ENCRYPTED]: 'We suspect that your file is encrypted, therefore it cannot be included.',
diff --git a/frontend/src/language/error-messages.ts b/frontend/src/language/error-messages.ts
index e7ae6c92..4b5386ca 100644
--- a/frontend/src/language/error-messages.ts
+++ b/frontend/src/language/error-messages.ts
@@ -1,4 +1,5 @@
export enum ErrorMessageKeys {
+ MAX_UPLOAD_SIZE = 'Maximum upload size exceeded', // Spring Boot default error message.
TOO_LARGE = 'TOO_LARGE',
TOTAL_TOO_LARGE = 'TOTAL_TOO_LARGE',
ENCRYPTED = 'ENCRYPTED',
diff --git a/frontend/src/language/nb.tsx b/frontend/src/language/nb.tsx
index 89853693..d8d70f46 100644
--- a/frontend/src/language/nb.tsx
+++ b/frontend/src/language/nb.tsx
@@ -401,6 +401,7 @@ export const nb = {
].map((c, index) => {c}),
},
error_messages: {
+ [ErrorMessageKeys.MAX_UPLOAD_SIZE]: 'Filstørrelsen kan ikke være større enn 8 MB.',
[ErrorMessageKeys.TOO_LARGE]: 'Filstørrelsen kan ikke være større enn 8 MB.',
[ErrorMessageKeys.TOTAL_TOO_LARGE]: 'Total filstørrelse kan ikke være større enn 32 MB.',
[ErrorMessageKeys.ENCRYPTED]: 'Vi mistenker at filen din er kryptert, den kan derfor ikke sendes med.',