fix: longer timeout (#6012)

This commit is contained in:
Roy 2025-12-01 21:14:39 +08:00 committed by GitHub
parent b0a58b98f1
commit 499b797d0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View File

@ -134,7 +134,8 @@ const FileSelector = ({
}
});
handleChangeFiles(files);
}
},
timeout: 5 * 60 * 1000 // 5 minutes
});
const previewUrl = await getPresignedChatFileGetUrl({
key: fields.key,

View File

@ -196,7 +196,8 @@ export const useFileUpload = (props: UseFileUploadOptions) => {
const percent = Math.round((e.loaded / e.total) * 100);
copyFile.process = percent;
updateFiles(fileIndex, copyFile);
}
},
timeout: 5 * 60 * 1000 // 5 minutes
}).catch((error) => Promise.reject(parseS3UploadError({ t, error, maxSize })));
const previewUrl = await getPresignedChatFileGetUrl({

View File

@ -109,7 +109,8 @@ const QuickCreateDatasetModal = ({
: item
)
);
}
},
timeout: 5 * 60 * 1000 // 5 minutes
})
.then(() => {
setSelectFiles((state) =>

View File

@ -96,7 +96,8 @@ const SelectFile = React.memo(function SelectFile() {
: item
)
);
}
},
timeout: 5 * 60 * 1000 // 5 minutes
})
.then(() => {
setSelectFiles((state) =>