Open yungs2017 opened 5 years ago
1.中文readme文档中的
AliyunOSS.initWithSecurityToken(/*local auth server*/, endPoint, configuration);
应该是
AliyunOSS.initWithServerSTS("/***http://ip:port/****/",endPoint, configuration)
2.使用
AliyunOSS.asyncUpload(bucketname, objectKey, filepath).then((res) => { // 这里并不能判断是否上传成功 // 还需要根据返回的res判断 httpResponseCode是否为200 // 当为200状态码的时候才是上传成功 }).catch()
1.中文readme文档中的
AliyunOSS.initWithSecurityToken(/*local auth server*/, endPoint, configuration);
应该是
AliyunOSS.initWithServerSTS("/***http://ip:port/****/",endPoint, configuration)
2.使用