From theConfigpage, click the name of the Config. Note the name of the S3 bucket that is displayed in theS3 bucketfield. Click theEditicon. Note the location path for the S3 bucket that is displayed underneath theLog file prefixfield....
client.putObject(BUCKET, "uploadsKey", data, 11, APPLICATION_OCTET_STREAM); Then try to set policy using client.setBucketPolicy(BUCKET, "uploads", BucketPolicy.WriteOnly); The line policy = getBucketAccessPolicy(bucketName, objectPrefix); in setBucketPolicy() sets the policy to null. Me...
I created a bucket and put a file under the bucket, but I when using AmazonS3.listObjects(String bucketName) in the s3 sdk, it gives me an empty list. I spent quite some time on this, and found out that a prefix of "/" is needed for the bucketName, even though the bucket names...