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
88805564
authored
Nov 27, 2025
by
Roy
Committed by
GitHub
Nov 27, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: limit s3 filename and metadata "origin-finename" max length to 50 (#6000)
parent
dbcf5b00
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
packages/service/common/s3/sources/dataset/index.ts
+1
-1
No files found.
packages/service/common/s3/sources/dataset/index.ts
View file @
88805564
...
@@ -178,7 +178,7 @@ export class S3DatasetSource {
...
@@ -178,7 +178,7 @@ export class S3DatasetSource {
await
this
.
bucket
.
putObject
(
key
,
buffer
,
buffer
.
length
,
{
await
this
.
bucket
.
putObject
(
key
,
buffer
,
buffer
.
length
,
{
'content-type'
:
Mimes
[
path
.
extname
(
truncatedFilename
)
as
keyof
typeof
Mimes
],
'content-type'
:
Mimes
[
path
.
extname
(
truncatedFilename
)
as
keyof
typeof
Mimes
],
'upload-time'
:
new
Date
().
toISOString
(),
'upload-time'
:
new
Date
().
toISOString
(),
'origin-filename'
:
encodeURIComponent
(
filename
)
// 保持原始文件名在元数据中
'origin-filename'
:
encodeURIComponent
(
truncatedFilename
)
});
});
await
MongoS3TTL
.
create
({
await
MongoS3TTL
.
create
({
minioKey
:
key
,
minioKey
:
key
,
...
...
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