我正在尝试运行AWS S3_TransferManager示例Android应用。我已在Constants.java文件中替换了我的AWS详细信息。现在,当我尝试运行应用程序时,它运行时没有错误,当我单击“上传图像”,并选择图像时,它会显示进度条但不会上传它。进度条保持空闲状态。 IAM->角色 - >内联政策
Policy Name - S3
Show Policy - {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:PutObject"],
"Resource": ["arn:aws:s3:::uni-cloud/*"]
}
]
}
我的存储桶名称是“uni-cloud”,存储桶的权限是
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::uni-cloud/*"
}
]
}
我做错了什么和哪里? 感谢