I am trying to upload an image to my AWS bucket I had created a new user Granted him fulls3 control
AWSCredentials credentials = new BasicAWSCredentials(MY_ACCESS_KEY_ID, MY_SECRET_KEY);
AmazonS3 s3client = new AmazonS3Client(credentials);
PutObjectResult objectRequest = s3client.putObject(new PutObjectRequest(GlobalConstant.bucketName+"/testing", f.getName().toString(),
f));
but while uploading I getting an error as follow
05-27 07:09:47.219: W/System.err(20594): com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: ), S3 Extended Request ID: +++/=
Aucun commentaire:
Enregistrer un commentaire