飞起的落叶_个人页

个人头像照片 飞起的落叶
0
4
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 提交了问题 2015-12-17

    IOS OSS上传图片出现问题,求助

  • 回答了问题 2015-12-17

    IOS OSS上传图片出现问题,求助

    回 2楼克劳德小弟的帖子 ios版的怎么打开日志呢,我想查看一下图片的上传路径
    踩0 评论0
  • 提交了问题 2015-12-16

    第一次用oss上传不上图片,求救,急!!!!

  • 回答了问题 2015-12-16

    第一次用oss上传不上图片,求救,急!!!!

    回 1楼克劳德小弟的帖子 解决了谢谢啊 ------------------------- 回 1楼克劳德小弟的帖子 NSDictionary * alidict1 = [aliDict objectForKey:@'Credentials'];         NSString * accessKeyId = [alidict1 objectForKey:@'AccessKeyId'];         NSString * expiration = [alidict1 objectForKey:@'Expiration'];         NSString * SecurityToken = [alidict1 objectForKey:@'SecurityToken'];         NSString * accessKeySecret = [alidict1 objectForKey:@'AccessKeySecret'];         OSSFederationToken * token = [OSSFederationToken new];         token.tAccessKey = accessKeyId;         token.tSecretKey = accessKeySecret;         token.tToken = SecurityToken;         token.expirationTimeInGMTFormat = expiration;         NSLog(@'get token:%@',token);         id credential = [[OSSFederationCredentialProvider alloc]initWithFederationTokenGetter:^OSSFederationToken *{             return token;         }];         NSLog(@'%@,%@',accessKeyId,accessKeySecret);         NSString *endpoint = ALIYUN_END_POINT;         OSSClient * client = [[OSSClient alloc] initWithEndpoint:endpoint credentialProvider:credential];         OSSPutObjectRequest * put = [OSSPutObjectRequest new];         put.bucketName = ALIYUN_BUCKET;         put.objectKey = fileName;                  NSString * docDir = [self getDocumentDirectory];         put.uploadingFileURL = [NSURL fileURLWithPath:[docDir stringByAppendingPathComponent:fileName]];                  NSLog(@'put.uploadingFileURL:%@',put.uploadingFileURL);         put.uploadProgress = ^(int64_t bytesSent, int64_t totalByteSent, int64_t totalBytesExpectedToSend) {             // 当前上传段长度、当前已经上传总长度、一共需要上传的总长度             NSLog(@'%lld, %lld, %lld', bytesSent, totalByteSent, totalBytesExpectedToSend);         };         OSSTask * putTask = [client putObject:put];         [putTask continueWithBlock:^id(OSSTask *task) {             if (!task.error) {                 NSLog(@'upload object success!');             }else{                 NSLog(@'upload object failed, error: %@',task.error);             }             return nil;         }]; 出现了一个新的问题,这样写完以后upload object failed, error: Error Domain=com.aliyun.oss.serverError Code=-403 '(null)' UserInfo={__name=Error, HostId=healthd-user-pic-stage.oss-cn-hangzhou.aliyuncs.com, Message=Access denied by authorizer's policy., Code=AccessDenied, RequestId=56721F398CDE4E0167DD6818}报这个错误,这是什么原因呢
    踩0 评论0
正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息