From 81f233991d66a3d4977f1ee5732ff6f026090973 Mon Sep 17 00:00:00 2001 From: LiuHaoyang Date: Mon, 14 Oct 2024 13:34:21 +0800 Subject: [PATCH] enhancement: increase file size limit to 25MB in QuickImport.vue (ref: #5858) --- packages/nc-gui/components/dlg/QuickImport.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/dlg/QuickImport.vue b/packages/nc-gui/components/dlg/QuickImport.vue index 4b873ef404..0ce69d83a0 100644 --- a/packages/nc-gui/components/dlg/QuickImport.vue +++ b/packages/nc-gui/components/dlg/QuickImport.vue @@ -318,9 +318,9 @@ const customReqCbk = (customReqArgs: { file: any; onSuccess: () => void }) => { /** check if the file size exceeds the limit */ const beforeUpload = (file: UploadFile) => { - const exceedLimit = file.size! / 1024 / 1024 > 5 + const exceedLimit = file.size! / 1024 / 1024 > 25 if (exceedLimit) { - message.error(`File ${file.name} is too big. The accepted file size is less than 5MB.`) + message.error(`File ${file.name} is too big. The accepted file size is less than 25MB.`) } return !exceedLimit || Upload.LIST_IGNORE }