Reputation: 1127
I'm working on an Android app which allows users to upload images to Amazon S3. I need to get the "storage" information from server in order to do the upload. However, the server does not return a bucket name filed. Instead, it returns a "host" filed which is "something.s3.amazonaws.com". I assume "something" should be the bucket name. Can someone confirm that for me?
Upvotes: 1
Views: 20243
Reputation: 1695
As per AWS documentation (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html):
In a virtual-hosted–style URL, the bucket name is part of the domain name in the URL. For example:
http://bucket.s3.amazonaws.com
http://bucket.s3-aws-region.amazonaws.com
Upvotes: 3