AWS S3 Bucket Permissions - Access Denied

后端 未结 9 507
独厮守ぢ
独厮守ぢ 2020-12-30 19:12

I am trying to give myself permission to download existing files in an S3 bucket. I\'ve modified the Bucket Policy, as follows:

        {
        \"Sid\": \"         


        
9条回答
  •  孤城傲影
    2020-12-30 19:40

    Use below method for uploading any file for public readable form using TransferUtility in Android.

    transferUtility.upload(String bucketName, String key, File file, CannedAccessControlList cannedAcl)
    

    Example

    transferUtility.upload("MY_BUCKET_NAME", "FileName", your_file, CannedAccessControlList.PublicRead);
    

提交回复
热议问题