title: Amazon s3 strange error while uploading image. Please suggest
body: <p>Using the following code in my Android activity:</p>
  
  <pre><code>CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
                  getApplicationContext(),    
                  "eu-central-1:XXXXXXXXXXXXXXXXXXXXX",    
                  Regions.EU_CENTRAL_1           
          );
  
          AmazonS3 s3 = new AmazonS3Client(credentialsProvider);
          TransferUtility transferUtility = new TransferUtility(s3, getApplicationContext());
  
         File file= new File("/storage/extSdCard/Sweee/app/src/main/res/mipmap-xxhdpi/ic_launcher.png");
          TransferObserver observer = transferUtility.upload(
                  "aaa.bbb",     
                  "test"+file.getName(),    
                 file      
          );
  </code></pre>
  
  <p>got the error: Error during upload: 1</p>
  
  <blockquote>
    <p>com.amazonaws.services.s3.model.AmazonS3Exception: The bucket you are
    attempting to access must be addressed using the specified endpoint</p>
  </blockquote>