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