Code Monkey home page Code Monkey logo

aliyun_oss's People

Contributors

laiiihz avatar lucky1213 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aliyun_oss's Issues

签名校验失败

pubObject 时如果传入参数 path 签名校验就会失败。
如果没有传入path 仅传入object path 根据类型和时间自动生成 就可成功上传。

InvalidAccessKeyId

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.