update readme
This commit is contained in:
parent
a11ca08d6c
commit
c0f5d483b7
2 changed files with 6 additions and 2 deletions
|
@ -40,7 +40,7 @@ Known supported providers
|
|||
|
||||
* Amazon Web Services
|
||||
* Scaleway Elements
|
||||
* Oracle Cloud
|
||||
* Oracle Cloud (partial)
|
||||
* MinIO
|
||||
|
||||
Known not supported providers
|
||||
|
|
|
@ -66,7 +66,11 @@ public class ObjectSelect extends AppCompatActivity {
|
|||
region = Region.getRegion(location);
|
||||
s3ClientOptions = S3ClientOptions.builder().build();
|
||||
myCredentials = new BasicAWSCredentials(username, password);
|
||||
try {
|
||||
s3client = new AmazonS3Client(myCredentials, region);
|
||||
} catch (Exception e) {
|
||||
Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
s3client.setEndpoint(endpoint);
|
||||
if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) {
|
||||
s3ClientOptions.setPathStyleAccess(true);
|
||||
|
|
Loading…
Reference in a new issue