update readme

This commit is contained in:
Page Asgardius 2022-09-17 18:54:54 -07:00
parent a11ca08d6c
commit c0f5d483b7
2 changed files with 6 additions and 2 deletions

View file

@ -40,7 +40,7 @@ Known supported providers
* Amazon Web Services
* Scaleway Elements
* Oracle Cloud
* Oracle Cloud (partial)
* MinIO
Known not supported providers

View file

@ -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);