Browse Source

enhancement: increase file size limit to 25MB in QuickImport.vue (ref: #5858)

pull/9654/head
LiuHaoyang 1 month ago
parent
commit
81f233991d
  1. 4
      packages/nc-gui/components/dlg/QuickImport.vue

4
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
}

Loading…
Cancel
Save