Skip to content

Proposal: Tencent COS CloudStorage plugin (serverpod_cloud_storage_cos) #4665

Closed

Description

@Metaildust

📝 Summary
I developed and published a Tencent Cloud COS CloudStorage adapter fully compatible with Serverpod’s official file‑upload API (createDirectFileUploadDescription / FileUploader).
The package includes a server‑side upload endpoint and password‑based configuration, allowing seamless integration with existing Serverpod projects.

🌟 Why it matters
COS is widely used in China, but Serverpod’s official storage options currently focus on S3 and GCP.

This adapter preserves Serverpod’s official CloudStorage API, so existing client code works without modification.

Helps Serverpod developers in China adopt a production‑ready storage backend with minimal friction.

🔧 Features
Full CloudStorage implementation for Tencent Cloud COS

Direct upload endpoint compatible with Serverpod’s FileUploader

Supports custom domain acceleration (CDN / COS 自定义域名)

Configuration via passwords.yaml:

yaml
tencentCosSecretId: xxx
tencentCosSecretKey: xxx
tencentCosBucket: xxx
tencentCosRegion: ap-shanghai
tencentCosCustomDomain: https://your-cdn-domain.com
🔗 Compatibility
Serverpod: 3.x

Dart: >= 3.8 < 4.0

🛠 Maintenance
I will continue maintaining this plugin throughout the Serverpod 3.x lifecycle, including updates for API changes and COS SDK improvements.

📦 Packages
CloudStorage adapter:
https://pub.dev/packages/serverpod_cloud_storage_cos

Underlying COS signer library:
https://pub.dev/packages/tencent_cos_dart

🤝 Contribution
If there is an official community‑plugins repository or a recommended contribution process, I’m happy to submit a PR and maintain this adapter under the Serverpod community ecosystem.

Activity

  1. Metaildust commented on Jan 31, 2026

    @Metaildust
    Author

    mentioned in #2229

  2. Metaildust commented on Feb 5, 2026

    @Metaildust
    Author

    This package is now part of the China Community Packages collection.

  3. marcelomendoncasoares commented on Feb 5, 2026

    @marcelomendoncasoares
    Collaborator

    Closing as explained on #4692 (comment).

  4. moved this from Inbox 📫 to Done 🚀 in Serverpod Frameworkson Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions