Browse Source

Merge pull request #9654 from AthrunAshy/enhancement/file-size-limit-check

enhancement: increase file size limit to 25MB in QuickImport.vue (ref: #5858)
pull/9656/head
navi 1 month ago committed by GitHub
parent
commit
d77aefdafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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 */ /** check if the file size exceeds the limit */
const beforeUpload = (file: UploadFile) => { const beforeUpload = (file: UploadFile) => {
const exceedLimit = file.size! / 1024 / 1024 > 5 const exceedLimit = file.size! / 1024 / 1024 > 25
if (exceedLimit) { 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 return !exceedLimit || Upload.LIST_IGNORE
} }

Loading…
Cancel
Save