Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
499b797d
authored
Dec 01, 2025
by
Roy
Committed by
GitHub
Dec 01, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: longer timeout (#6012)
parent
b0a58b98
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
projects/app/src/components/core/app/FileSelector/index.tsx
+2
-1
projects/app/src/components/core/chat/ChatContainer/ChatBox/hooks/useFileUpload.tsx
+2
-1
projects/app/src/pageComponents/app/detail/components/QuickCreateDatasetModal.tsx
+2
-1
projects/app/src/pageComponents/dataset/detail/Import/diffSource/FileLocal.tsx
+2
-1
No files found.
projects/app/src/components/core/app/FileSelector/index.tsx
View file @
499b797d
...
@@ -134,7 +134,8 @@ const FileSelector = ({
...
@@ -134,7 +134,8 @@ const FileSelector = ({
}
}
});
});
handleChangeFiles
(
files
);
handleChangeFiles
(
files
);
}
},
timeout
:
5
*
60
*
1000
// 5 minutes
});
});
const
previewUrl
=
await
getPresignedChatFileGetUrl
({
const
previewUrl
=
await
getPresignedChatFileGetUrl
({
key
:
fields
.
key
,
key
:
fields
.
key
,
...
...
projects/app/src/components/core/chat/ChatContainer/ChatBox/hooks/useFileUpload.tsx
View file @
499b797d
...
@@ -196,7 +196,8 @@ export const useFileUpload = (props: UseFileUploadOptions) => {
...
@@ -196,7 +196,8 @@ export const useFileUpload = (props: UseFileUploadOptions) => {
const
percent
=
Math
.
round
((
e
.
loaded
/
e
.
total
)
*
100
);
const
percent
=
Math
.
round
((
e
.
loaded
/
e
.
total
)
*
100
);
copyFile
.
process
=
percent
;
copyFile
.
process
=
percent
;
updateFiles
(
fileIndex
,
copyFile
);
updateFiles
(
fileIndex
,
copyFile
);
}
},
timeout
:
5
*
60
*
1000
// 5 minutes
}).
catch
((
error
)
=>
Promise
.
reject
(
parseS3UploadError
({
t
,
error
,
maxSize
})));
}).
catch
((
error
)
=>
Promise
.
reject
(
parseS3UploadError
({
t
,
error
,
maxSize
})));
const
previewUrl
=
await
getPresignedChatFileGetUrl
({
const
previewUrl
=
await
getPresignedChatFileGetUrl
({
...
...
projects/app/src/pageComponents/app/detail/components/QuickCreateDatasetModal.tsx
View file @
499b797d
...
@@ -109,7 +109,8 @@ const QuickCreateDatasetModal = ({
...
@@ -109,7 +109,8 @@ const QuickCreateDatasetModal = ({
:
item
:
item
)
)
);
);
}
},
timeout
:
5
*
60
*
1000
// 5 minutes
})
})
.
then
(()
=>
{
.
then
(()
=>
{
setSelectFiles
((
state
)
=>
setSelectFiles
((
state
)
=>
...
...
projects/app/src/pageComponents/dataset/detail/Import/diffSource/FileLocal.tsx
View file @
499b797d
...
@@ -96,7 +96,8 @@ const SelectFile = React.memo(function SelectFile() {
...
@@ -96,7 +96,8 @@ const SelectFile = React.memo(function SelectFile() {
:
item
:
item
)
)
);
);
}
},
timeout
:
5
*
60
*
1000
// 5 minutes
})
})
.
then
(()
=>
{
.
then
(()
=>
{
setSelectFiles
((
state
)
=>
setSelectFiles
((
state
)
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment