lucky1213 / aliyun_oss Goto Github PK
View Code? Open in Web Editor NEW阿里云 OSS flutter
License: MIT License
阿里云 OSS flutter
License: MIT License
上传文件的名称似乎不能自定义。
aliyun_oss_flutter ^1.0.6能发布到https://pub.dev/吗?谢谢
The request signature we calculated does not match the signature you provided. Check your key and signing method.
问一下这种情况是哪里出现问题了
作者你好,后续计划能否扩展一些添加图片水印的可选参。
STS鉴权上传怎么使用,endpoint应该怎么填写
缺少删除功能
Credentials.fromJson 这个方法一直报错
I/flutter ( 3569):
I/flutter ( 3569): InvalidAccessKeyId
I/flutter ( 3569): The OSS Access Key Id you provided does not exist in our records. The Security Token may be lost to specify that it is a STS Access Id.
I/flutter ( 3569): 64DCFBB694C77F3830309BB0
I/flutter ( 3569): paper-data-uat.oss-cn-hangzhou.aliyuncs.com
I/flutter ( 3569): STS.NUQrpkhEPr98RDscmwTiUMKdc
I/flutter ( 3569): 0002-00000003
I/flutter ( 3569):
这是初始化的代码;
/// 初始化aliyun oss
OSSClient.init( endpoint: resp.data.endpoint, bucket: resp.data.bucket, credentials: () { // Or Credentials Config return Future.value(Credentials( accessKeyId: resp.data.accessKeyId, accessKeySecret: resp.data.accessKeySecret, securityToken: resp.data.stsToken )); }, );
这是上传的代码:
final object = await OSSClient().putObject( object: OSSImageObject.fromFile(file: File(path)), bucket: state.bucket, // String? endpoint: state.endpoint, // String? );
不明白为什么这里还要设置bucket和endpoint
Is there any plan for support web?
感觉和这个问题有关 cfug/dio#1156 (comment)
可以使用compute的方式暂时解决这个问题
pubObject 时如果传入参数 path 签名校验就会失败。
如果没有传入path 仅传入object path 根据类型和时间自动生成 就可成功上传。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.