Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
【修改内容】
1、增加S3配置,server初始化时,完成client的初始化。
2、上传来源时,上传到目录后,如果配置了S3存储,会上传到S3存储,然后清理目录文件。
3、来源删除时,原代码未删除文件,此处新增会尝试删除文件,删除S3对象。
【遗留问题】
1、AI生成后留存了一个获取S3对象存储文件的函数serveFileFromS3,为后期实现文件查看留存。
2、上传S3存储的API,20260130将feature/s3/manager置为了deprecated,这里尝试将过期API更换为最新的feature/s3/transfermanager后,上传文件报错XAmzContentSHA256Mismatch,s3Client也曾同样报错,修改为RequestChecksumCalculationWhenRequired后解决,但此处无法配置。初步怀疑这里的transfermanager未将S3Client的配置复制过来。