Blasanka / aws_s3_plugin

This is a plugin created for file upload to AWS S3
Other
10 stars 13 forks source link

Android need set region when initialize AmazonS3Client #1

Open microblue opened 4 years ago

microblue commented 4 years ago

transferUtility1 = TransferUtility.builder().context(mContext).awsConfiguration(AWSMobileClient.getInstance().getConfiguration()).s3Client(new AmazonS3Client(credentialsProvider)).build();

I catch an error when upload in android device. I guess, you might need set region of AmazonS3Client, could you please double check?

microblue commented 4 years ago

AmazonS3 s3 = AmazonS3ClientBuilder.standard().build(); Region usWest2 = com.amazonaws.regions.Region.getRegion(Regions.US_WEST_2); s3.setRegion(usWest2);

Blasanka commented 4 years ago

Thank you for your feedback @microblue !

Can I see the log message if possible?