我正在研究一个需要将图像上传到S3的应用程序。现在我这样做:通过CloudFront将内容上传到S3
S3PutObjectRequest *por = [[S3PutObjectRequest alloc] initWithKey:nameOfThePicture inBucket:nameOfTheBucket];
por.contentType = @"image/jpg";
por.data = imageData;
// Put the image data into the specified s3 bucket and object.
S3PutObjectResponse *putObjectResponse = [self.s3 putObject:por];
por.delegate = self;
将图像直接上传到S3太慢,我配置了CloudFront服务。 现在,我想通过CloudFront将图像上传到S3中的原始存储分区。有可能做到这一点?如果是的话,我该怎么做?
真的感谢,
维克多
好的。谢谢回答。 – VICTORGS3 2013-03-21 22:45:21
更新:2013年10月更新。CloudFront现在将HTTP PUT和POST命令(等等)传递到原点。但AFAICT在任何SDK中都不能通过S3 API工作。 – 2013-10-21 17:20:42
我想要让所有S3授权标题正确通过可能会有问题。 – duskwuff 2013-10-21 21:21:53