From d24528f6a6e80bc7a7d5463d8a6b7e4c414d4678 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 11 Jun 2025 22:05:30 -0400 Subject: [PATCH] frontend: Improve file too large error (#3774) * Improve file too large error Signed-off-by: IThundxr * MB -> MiB Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com> --------- Signed-off-by: IThundxr Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> --- apps/frontend/src/composables/image-upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/composables/image-upload.ts b/apps/frontend/src/composables/image-upload.ts index 5afc38850..5e7e74e81 100644 --- a/apps/frontend/src/composables/image-upload.ts +++ b/apps/frontend/src/composables/image-upload.ts @@ -19,7 +19,7 @@ export const useImageUpload = async (file: File, ctx: ImageUploadContext) => { // Make sure file is less than 1MB if (file.size > 1024 * 1024) { - throw new Error("File is too large"); + throw new Error("File exceeds the 1MiB size limit"); } const qs = new URLSearchParams();