mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: correct file limit condition to allow maximum file uploads
This commit is contained in:
parent
f8ada9a110
commit
356b0ab9c4
|
|
@ -543,7 +543,7 @@ const uploadFile = async (file: any, fileList: any) => {
|
|||
uploadAudioList.value.length +
|
||||
uploadVideoList.value.length +
|
||||
uploadOtherList.value.length
|
||||
if (file_limit_once >= maxFiles) {
|
||||
if (file_limit_once > maxFiles) {
|
||||
MsgWarning(t('chat.uploadFile.limitMessage1') + maxFiles + t('chat.uploadFile.limitMessage2'))
|
||||
fileList.splice(0, fileList.length, ...fileList.slice(0, maxFiles))
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue