flutter_oss_aliyun
6.4.2, released 3 years ago by huhx.cn
Access Aliyun OSS from Flutter with STS temporary access credential support.
WASM-ready
What it does
Provides a comprehensive Flutter client for Aliyun OSS, allowing you to upload, download, copy, and delete files, manage buckets, and generate signed URLs. It supports STS temporary access tokens and custom authentication getters.
AI-written summary of version 6.4.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- Your application needs to upload or download files from Aliyun OSS.
- You need to interact with Aliyun Object Storage Service using STS temporary tokens.
Skip it when
- You use a completely different cloud storage provider like AWS S3 or Firebase Storage.
Strengths
- Covers almost all Aliyun OSS SDK features including batch operations and local file handling.
- Supports STS temporary access tokens and custom auth getters.
- Cross-platform support including mobile, desktop, and web.
Weaknesses
- Tied specifically to Aliyun OSS backend services.
- Requires proper backend configuration for STS token generation.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires configuring an OSS endpoint, bucket name, and either an STS server endpoint or a custom auth getter function.
Client.init(
stsUrl: "server url get sts token",
ossEndpoint: "oss-cn-beijing.aliyuncs.com",
bucketName: "bucket name",
);
await Client().putObject(
bytes,
"test.txt",
);Works with
Packages commonly used together with flutter_oss_aliyun: ones it builds on, ones built on it, and its own family.
- cryptoflutter_oss_aliyun depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- mimeflutter_oss_aliyun depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- asyncflutter_oss_aliyun depends on itUtility classes and helpers that extend Dart's async library.
- dioflutter_oss_aliyun depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.