Skip to content

feat(cloudreve): s3 policy support#8245

Merged
xhofe merged 2 commits intoAlistGo:mainfrom
xrgzs:feat/cloudreve-s3-upload
Apr 3, 2025
Merged

feat(cloudreve): s3 policy support#8245
xhofe merged 2 commits intoAlistGo:mainfrom
xrgzs:feat/cloudreve-s3-upload

Conversation

@xrgzs
Copy link
Copy Markdown
Contributor

@xrgzs xrgzs commented Mar 27, 2025

支持上传到 Cloudreve S3 存储策略

@petercat-assistant
Copy link
Copy Markdown

Walkthrough: This PR introduces support for uploading to Cloudreve S3 storage by adding a new case for S3 in the policy type switch statement. It includes a new function upS3 to handle the upload process, and updates the UploadInfo struct to accommodate S3-specific fields.

Changes:

Files Summary
drivers/cloudreve/driver.go Added a new case for "s3" in the policy type switch statement to handle S3 uploads.
drivers/cloudreve/types.go Updated UploadInfo struct to include CompleteURL for S3 uploads.
drivers/cloudreve/util.go Implemented upS3 function to manage the S3 upload process, including multipart upload handling and completion.

Comment thread drivers/cloudreve/util.go Outdated
@xhofe xhofe merged commit 465dd17 into AlistGo:main Apr 3, 2025
12 checks passed
@xrgzs xrgzs deleted the feat/cloudreve-s3-upload branch April 6, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants