tencent_cos 1.0.1 copy "tencent_cos: ^1.0.1" to clipboard
tencent_cos: ^1.0.1 copied to clipboard

outdated

flutter cos插件

Getting started #

flutter 版本的插件腾讯cos插件,不依赖原生插件.参考:https://cloud.tencent.com/document/product/436/7749

Usage #

//如果后台采用临时秘钥这里需要传入值,不然403错误,如果永久秘钥写在客户端,token可以不传入
String token = "";
//本地的file
String localPath = "";
//cos路径
String cosPath = "abc/123.png";
await COSClient(COSConfig(
credentials["secretId"],
credentials["secretKey"],
credentials["bucketName"],
credentials["region"],
)).putObject(cosPath, localPath, token: token);

Additional information #

参考:https://cloud.tencent.com/developer/article/1878729

11
likes
0
pub points
81%
popularity

Publisher

unverified uploader

flutter cos插件

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

convert, crypto, flutter, xml

More

Packages that depend on tencent_cos