放大上传限制、大文件上传参数修改
Context testing / dump_contexts_to_log (push) Successful in 1m10s
Details
Context testing / dump_contexts_to_log (push) Successful in 1m10s
Details
This commit is contained in:
parent
e4cfa09bda
commit
dac5326475
|
|
@ -519,7 +519,7 @@ function CreateResource(props) {
|
|||
ref={uploadRef}
|
||||
fileType={"ai-resource"}
|
||||
disabled={loading}
|
||||
maxSize={50 * 1024 * 1024 * 1024} // 50GB
|
||||
maxSize={1024 * 1024 * 1024 * 1024} // 1TB
|
||||
onUploadComplete={(fileInfo) => {
|
||||
// 设置表单字段,保存 fileId
|
||||
setFieldsValue({
|
||||
|
|
@ -538,7 +538,7 @@ function CreateResource(props) {
|
|||
</span>
|
||||
<div className="color091 mt15 mb15">请上传{typeDetail.name}压缩包(支持 .zip 格式)</div>
|
||||
<div className="coloraeb mb10">请确保压缩包内包含{typeDetail.name}文件及 README.md,系统将自动解析说明文档</div>
|
||||
<div className="coloraeb">单文件最大支持 50GB,系统支持断点续传</div>
|
||||
<div className="coloraeb">单文件最大支持 1TB,系统支持断点续传</div>
|
||||
</ChunkedUpload>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -302,10 +302,10 @@ const ChunkedUpload = forwardRef(({
|
|||
setUploadId(resumingUploadId);
|
||||
|
||||
// 处理会话状态为合并中的情况(参照 ruoyi-react)
|
||||
if (checkData.resumingSessionStatus === 'MERGING' || checkData.resumingSessionStatus === '合并中') {
|
||||
if (checkData.resumingUploadStatus === 'MERGING' || checkData.resumingUploadStatus === '合并中') {
|
||||
// message.info('文件正在合并中,请稍候...');
|
||||
// 直接轮询进度
|
||||
const mergeResult = await pollMergeStatus(newUploadId, (mergeProgress) => {
|
||||
const mergeResult = await pollMergeStatus(resumingUploadId, (mergeProgress) => {
|
||||
setProgress(mergeProgress);
|
||||
});
|
||||
setUploadStatus('completed');
|
||||
|
|
@ -405,9 +405,10 @@ const ChunkedUpload = forwardRef(({
|
|||
|
||||
// 继续轮询(合并中或其他中间状态)
|
||||
retryCount++;
|
||||
if (retryCount >= maxRetries) {
|
||||
throw new Error('合并超时,请稍后查看结果');
|
||||
}
|
||||
// 不要做最大次数限制
|
||||
// if (retryCount >= maxRetries) {
|
||||
// throw new Error('合并超时,请稍后查看结果');
|
||||
// }
|
||||
|
||||
// 等待指定间隔后继续轮询
|
||||
await new Promise(resolve => setTimeout(resolve, interval));
|
||||
|
|
|
|||
Loading…
Reference in New Issue