我正在使用Amazon iOS Sdk上传S3存储桶中的图片,上传后生成的链接为“ https://s3.amazonaws.com/MYBUCKET/MYIMAGE.PNG ”,但我想要它就像“ https:/MYBUCKET.s3.amazonaws.com/MYIMAGE.PNG ”。怎么做到这一点?
S3PutObjectRequest *por = [[[S3PutObjectRequest alloc] initWithKey:@"MYIMAGE.PNG"
inBucket:@"MYBUCKET"] autorelease];
por.contentType = @"image/jpeg";
por.data = imageData;
por.delegate = self;
[self.s3 putObject:por];