iOS使用我的存储桶命名空间上传到Amazon S3存储桶

时间:2013-12-27 06:55:13

标签: ios amazon-s3 image-uploading

我正在使用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];

0 个答案:

没有答案