viI am trying to upload file to a Amazon S3 server from android app using signed url which is generated from server side, its working fine on our testing Amazon s3 account but its return 'Access Denied'
error for live account with new bucket name.
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>my requestid</RequestId><HostId> my hostid </HostId></Error>
upload code:
public void UploadObject(String signed_url ) throws IOException
{
HttpClient client = new DefaultHttpClient();
HttpPut post = new HttpPut(signed_url);
// uploading video file:
post.setEntity(new FileEntity(getMyVideoFile(), "video/mp4"));
HttpResponse response = client.execute(post);
HttpEntity entity = response.getEntity();
String responseString = EntityUtils.toString(entity, "UTF-8");
}
its working fine in ios for both account(signed url generated from same server side),Any help will be appreciated.